Changeset 40 for trunk/FirmwareFX2


Ignore:
Timestamp:
Sep 11, 2009, 4:21:30 PM (15 years ago)
Author:
demin
Message:

turn led off at startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FirmwareFX2/usbjtag.c

    r28 r40  
    119119   EP1OUTCFG  = 0xA0; SYNCDELAY;                        // Endpoint 1 Type Bulk                 
    120120   EP1INCFG   = 0xA0; SYNCDELAY;                        // Endpoint 1 Type Bulk
    121                                                        
     121
    122122   EP2FIFOCFG = 0x00; SYNCDELAY;                        // Endpoint 2
    123123   EP2CFG     = 0xA2; SYNCDELAY;                        // Endpoint 2 Valid, Out, Type Bulk, Double buffered
     
    125125   EP4FIFOCFG = 0x00; SYNCDELAY;                        // Endpoint 4 not used
    126126   EP4CFG     = 0xA0; SYNCDELAY;                        // Endpoint 4 not used
    127                                                        
     127
    128128   REVCTL = 0; SYNCDELAY;                               // Reset FW access to FIFO buffer, enable auto-arming when AUTOOUT is switched to 1
    129129                                                       
     
    146146   EP4BCL = 0x80; SYNCDELAY;
    147147
    148    PINFLAGSAB = 0xFA; SYNCDELAY;                         // 1111_1010 => FLAGA = EMPTY flag for EP6; FLAGB = FULL flag for EP8
     148   PINFLAGSAB = 0xFA; SYNCDELAY;                        // 1111_1010 => FLAGA = EMPTY flag for EP6; FLAGB = FULL flag for EP8
     149
     150
     151   // LED turned off by default
     152   IOD |= (1 << 4); SYNCDELAY;
    149153
    150154   // Put the system in high speed by default (REM: USB-Blaster is in full speed)
Note: See TracChangeset for help on using the changeset viewer.