nRF51 SDK - S110 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Serialization Application Hardware Abstraction Layer

Functions which set up hardware on Application board and perform the reset of the Connectivity Board. More...

Functions

uint32_t ser_app_hal_hw_init (void)
 Function for initializing hw modules. More...
 
void ser_app_hal_delay (uint32_t ms)
 Function for waiting for given amount of time. More...
 
void ser_app_hal_nrf_reset_pin_clear (void)
 Function for clearing connectivity chip reset pin. More...
 
void ser_app_hal_nrf_reset_pin_set (void)
 Function for setting connectivity chip reset pin. More...
 
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. More...
 
void ser_app_hal_nrf_evt_pending (void)
 Function for setting pending interrupt for serving events incoming from connectivity chip. More...
 

Detailed Description

Functions which set up hardware on Application board and perform the reset of the Connectivity Board.

Function Documentation

void ser_app_hal_delay ( uint32_t  ms)

Function for waiting for given amount of time.

Parameters
[in]msNumber of miliseconds to wait.
uint32_t ser_app_hal_hw_init ( void  )

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.

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.