Go to the source code of this file.
Functions | |
| void | SPI_Init (void) |
| void | GPIO_Init (void) |
| void | INT_Init () |
| INTERRUPT (Int2_Routine, EXTI_VectInt2) | |
| void | main (void) |
Variables | |
| const NRF24_SCEN | CURRENT_SCEN = NRF24_SCEN_HALF_DUPLEX |
| uint8_t __IDATA | xbuf [NRF24_PLOAD_WIDTH+1] |
| void GPIO_Init | ( | void | ) |
Definition at line 55 of file nrf24l01_stc8h1k.c.
| void INT_Init | ( | ) |
Definition at line 66 of file nrf24l01_stc8h1k.c.
| INTERRUPT | ( | Int2_Routine | , |
| EXTI_VectInt2 | |||
| ) |
Definition at line 72 of file nrf24l01_stc8h1k.c.
| void main | ( | void | ) |
Definition at line 77 of file nrf24l01_stc8h1k.c.
| void SPI_Init | ( | void | ) |
Definition at line 35 of file nrf24l01_stc8h1k.c.
| const NRF24_SCEN CURRENT_SCEN = NRF24_SCEN_HALF_DUPLEX |
Example code of SPI driving NRF24L01 module
Pin connection: P35(SS, Ignored) => CSN P34(MOSI) => MOSI P33(MISO) => MISO P32(SPCLK) => CLK P36(INT2) => IRQ P37(IO) => CE
test-board: Minimum System; test-MCU: STC8H1K08,STC8H3K32S2
Definition at line 32 of file nrf24l01_stc8h1k.c.
|
extern |