1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atusb/fw2: further abstract board functions

- atusb.c (main), board.h (board_init), board.c (board_init): moved
  clock and I/O initialization to board file
- board.h (led), board.c (led), atusb.c (main): abstracted LED setting
  in function "led" instead of open-coding it
- spi.c (spi_init): set nSS to 1 before enabling the output, so that we
  don't generate what looks like an empty SPI transaction
This commit is contained in:
Werner Almesberger
2011-02-10 20:49:23 -03:00
parent 509542af73
commit f8fbb02bb0
4 changed files with 30 additions and 14 deletions

View File

@@ -30,6 +30,7 @@ void spi_end(void)
void spi_init(void)
{
SET(nSS);
OUT(SCLK);
OUT(MOSI);
OUT(nSS);