Skip to content

Commit

Permalink
Make all FIFO strobes active-high for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed May 8, 2018
1 parent ad62d88 commit d0a693f
Show file tree
Hide file tree
Showing 5 changed files with 1,089 additions and 1,075 deletions.
22 changes: 18 additions & 4 deletions firmware/main.c
Expand Up @@ -434,13 +434,27 @@ int main() {
SYNCDELAY();
REVCTL = _ENH_PKT|_DYN_OUT;
SYNCDELAY();
EP2FIFOCFG = _ZEROLENIN;
FIFOPINPOLAR = _PKTEND|_SLOE|_SLRD|_SLWR|_EF|_FF;
SYNCDELAY();
EP4FIFOCFG = _ZEROLENIN;
EP1INCFG = 0;
SYNCDELAY();
EP6FIFOCFG = _ZEROLENIN;
EP1OUTCFG = 0;
SYNCDELAY();
EP8FIFOCFG = _ZEROLENIN;
EP2CFG = _VALID|_DIR|_TYPE1|_BUF1; // EP2 IN BULK
SYNCDELAY();
EP2FIFOCFG = _INFM1|_OEP1|_AUTOOUT|_AUTOIN|_ZEROLENIN;
SYNCDELAY();
EP4CFG = _VALID|_TYPE1|_BUF1; // EP4 OUT BULK
SYNCDELAY();
EP4FIFOCFG = _INFM1|_OEP1|_AUTOOUT|_AUTOIN|_ZEROLENIN;
SYNCDELAY();
EP6CFG = _VALID|_DIR|_TYPE1|_BUF1; // EP6 IN BULK
SYNCDELAY();
EP6FIFOCFG = _INFM1|_OEP1|_AUTOOUT|_AUTOIN|_ZEROLENIN;
SYNCDELAY();
EP8CFG = _VALID|_TYPE1|_BUF1; // EP2 OUT BULK
SYNCDELAY();
EP8FIFOCFG = _INFM1|_OEP1|_AUTOOUT|_AUTOIN|_ZEROLENIN;

// Drive 30 MHz IFCLK
SYNCDELAY();
Expand Down
6 changes: 3 additions & 3 deletions hardware/boards/glasgow/glasgow-cache.lib
Expand Up @@ -160,7 +160,7 @@ F1 "Device:C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
*:C_*
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
Expand Down Expand Up @@ -246,7 +246,7 @@ F1 "Device:R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
*:R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
Expand Down Expand Up @@ -580,7 +580,7 @@ F1 "Power_Supervisor:LM3880" 150 250 50 H V C CNN
F2 "Package_TO_SOT_SMD:SOT-23-6" 650 -250 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
*:SOT?23*
SOT?23*
$ENDFPLIST
DRAW
S -300 200 300 -200 0 1 10 f
Expand Down

0 comments on commit d0a693f

Please sign in to comment.