#include #include #include "encoding.h" #include "platform.h" #include "eos.h" #include "msgq.h" #include "interrupt.h" #include "event.h" #include "board.h" #include "net.h" #include "spi.h" #include "spi_priv.h" #include "spi_cfg.h" #include "spi_dev.h" static uint8_t spi_dev; static uint8_t spi_lock; static uint16_t spi_div[EOS_SPI_MAX_DEV]; int eos_spi_dev_init(uint8_t wakeup_cause) { int i; for (i=0; i