Functions which set up hardware on Application board and perform the reset of the Connectivity Board.
More...
|
typedef void(* | ser_app_hal_flash_op_done_handler_t )(bool success) |
|
Functions which set up hardware on Application board and perform the reset of the Connectivity Board.
void ser_app_hal_delay |
( |
uint32_t |
ms | ) |
|
Function for waiting for given amount of time.
- Parameters
-
[in] | ms | Number of milliseconds to wait. |
uint32_t ser_app_hal_hw_init |
( |
ser_app_hal_flash_op_done_handler_t |
handler | ) |
|
Function for initializing hw modules.
Function can initilize can hardware modules on application processor. It is optional to implement. It is called one connectivity chip is initialized.
- Parameters
-
handler | Flash operation event handler |
- Returns
- NRF_SUCCESS HAL initialized successfully.
-
NRF_ERROR_... HAL initialization failed.
void ser_app_hal_nrf_evt_irq_priority_set |
( |
void |
| ) |
|
Function for setting softdevice event interrupt priority which is serving events incoming from connectivity chip.
- Note
- Serialization solution on application side mimics SoC solution where events are handled in the interrupt context in two ways: or directly in the interrupt context or message is posted to the scheduler. However, it is possible that application processor is not using dedicated interrupt for connectivity events. In that case this function can be left empty and ser_app_hal_nrf_evt_pending will directly call an interrupt handler function.
void ser_app_hal_nrf_evt_pending |
( |
void |
| ) |
|
Function for setting pending interrupt for serving events incoming from connectivity chip.
- Note
- The interrupt used for event from connectivity chip mimics behavior of SoC and it is not intended to be triggered by any hardware event. This function should be the only source of interrupt triggering.
void ser_app_hal_nrf_reset_pin_clear |
( |
void |
| ) |
|
Function for clearing connectivity chip reset pin.
void ser_app_hal_nrf_reset_pin_set |
( |
void |
| ) |
|
Function for setting connectivity chip reset pin.