stm32_spi.h 426 B

1234567891011121314
  1. #ifndef _STM32_SPI_H_
  2. #define _STM32_SPI_H_
  3. #define IRQ_MODE 0
  4. #define DMA_MODE 1
  5. #define POLLING_MODE 2
  6. static int Stm32SpiSetup(NUTSPINODE * node);
  7. static int Stm32SpiBusNodeInit(NUTSPINODE * node);
  8. static int Stm32SpiBusSelect(NUTSPINODE * node, uint32_t tmo);
  9. static int Stm32SpiBusDeselect(NUTSPINODE * node);
  10. static int Stm32SpiBusTransfer(NUTSPINODE * node, const void *txbuf, void *rxbuf, int xlen);
  11. #endif