Functions | |
sint8 | nm_bsp_deinit (void) |
De-iInitialize BSP. More... | |
sint8 | nm_bsp_init (void) |
void | nm_bsp_interrupt_ctrl (uint8 u8Enable) |
Enable/Disable interrupts. More... | |
void | nm_bsp_register_isr (tpfNmBspIsr pfIsr) |
void | nm_bsp_reset (void) |
Reset WINC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high. More... | |
void | nm_bsp_sleep (uint32 u32TimeMsec) |
nm_bsp_deinit | ( | void | ) |
De-iInitialize BSP.
De-initialization for BSP (Board Support Package)
Definition at line 89 of file nm_bsp_same70.c.
sint8 nm_bsp_init | ( | void | ) |
Initialization for BSP such as Reset and Chip Enable Pins for WINC, delays, register ISR, enable/disable IRQ for WINC, ...etc. You must use this function in the head of your application to enable WINC and Host Driver to communicate with each other.
Definition at line 71 of file nm_bsp_same70.c.
void nm_bsp_interrupt_ctrl | ( | uint8 | u8Enable | ) |
Enable/Disable interrupts.
Synchronous enable/disable interrupts function
[in] | u8Enable | '0' disable interrupts. '1' enable interrupts |
Definition at line 154 of file nm_bsp_same70.c.
void nm_bsp_register_isr | ( | tpfNmBspIsr | pfIsr | ) |
Register ISR (Interrupt Service Routine) in the initialization of HIF (Host Interface) Layer. When the interrupt trigger the BSP layer should call the pfisr function once inside the interrupt.
[in] | pfIsr | Pointer to ISR handler in HIF |
Definition at line 130 of file nm_bsp_same70.c.
nm_bsp_reset | ( | void | ) |
Reset WINC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high.
Resetting NMC1500 SoC by setting CHIP_EN and RESET_N signals low, then after specific delay the function will put CHIP_EN high then RESET_N high, for the timing between signals please review the WINC data-sheet
Definition at line 101 of file nm_bsp_same70.c.
void nm_bsp_sleep | ( | uint32 | u32TimeMsec | ) |
Sleep in units of milliseconds.
This function is used by HIF Layer as required in various situations.
[in] | u32TimeMsec | Time unit in milliseconds |
Definition at line 117 of file nm_bsp_same70.c.