28 #define LWSBBSPI_FLAG_USE_NCMD3 (1 << 7)
29 #define LWSBBSPI_FLAG_USE_NCMD2 (1 << 6)
30 #define LWSBBSPI_FLAG_USE_NCMD1 (1 << 5)
31 #define LWSBBSPI_FLAG_USE_NCMD0 (1 << 4)
32 #define LWSBBSPI_FLAG_USE_NCS3 (1 << 3)
33 #define LWSBBSPI_FLAG_USE_NCS2 (1 << 2)
34 #define LWSBBSPI_FLAG_USE_NCS1 (1 << 1)
35 #define LWSBBSPI_FLAG_USE_NCS0 (1 << 0)
37 #define LWS_SPI_BB_MAX_CH 4
46 _lws_plat_gpio_t ncs[LWS_SPI_BB_MAX_CH];
47 _lws_plat_gpio_t ncmd[LWS_SPI_BB_MAX_CH];
48 _lws_plat_gpio_t mosi;
49 _lws_plat_gpio_t miso;
54 #define lws_bb_spi_ops \
55 .init = lws_bb_spi_init, \
56 .queue = lws_bb_spi_queue
Definition: lws-bb-spi.h:39
Definition: lws-gpio.h:52