picked changes from spi_rewrite

* up to 30c07a6ba53e45453ed766c6ffefd6cd0d606493
This commit is contained in:
Felix Ruess
2012-03-27 00:23:34 +02:00
parent eb230911d1
commit aa506c9110
12 changed files with 829 additions and 326 deletions
+12 -3
View File
@@ -46,7 +46,7 @@
#ifdef USE_USB_SERIAL
#include "mcu_periph/usb_serial.h"
#endif
#ifdef USE_SPI
#if USE_SPI0 || USE_SPI1 || USE_SPI2
#include "mcu_periph/spi.h"
#endif
#ifdef USE_DAC
@@ -100,8 +100,17 @@ void mcu_init(void) {
#ifdef USE_USB_SERIAL
VCOM_init();
#endif
#ifdef USE_SPI
spi_init();
#if USE_SPI0
spi0_init();
#endif
#if USE_SPI1
spi1_init();
#endif
#if USE_SPI2
spi2_init();
#endif
#if USE_SPI0 || USE_SPI1 || USE_SPI2
spi_init_slaves();
#endif
#ifdef USE_DAC
dac_init();