37 #if SYS_CFG_PRESENT == 1 38 #include "sys_config.h" 41 #ifndef AUX_CLK_PPI_CHANNELS_USED 42 #define AUX_CLK_PPI_CHANNELS_USED 2 45 #ifndef AUX_CLK_PPI_CHANNEL_BASE 46 #define AUX_CLK_PPI_CHANNEL_BASE 5 49 #ifndef AUX_CLK_PPI_CHANNEL_0 50 #define AUX_CLK_PPI_CHANNEL_0 (AUX_CLK_PPI_CHANNEL_BASE + 0) 53 #ifndef AUX_CLK_PPI_CHANNEL_1 54 #define AUX_CLK_PPI_CHANNEL_1 (AUX_CLK_PPI_CHANNEL_BASE + 1) 57 #if (AUX_CLK_PPI_CHANNELS_USED > 2) 58 #ifndef AUX_CLK_PPI_CHANNEL_2 59 #define AUX_CLK_PPI_CHANNEL_2 (AUX_CLK_PPI_CHANNEL_BASE + 2) 62 #if (AUX_CLK_PPI_CHANNELS_USED > 3) 63 #ifndef AUX_CLK_PPI_CHANNEL_3 64 #define AUX_CLK_PPI_CHANNEL_3 (AUX_CLK_PPI_CHANNEL_BASE + 3) 67 #if (AUX_CLK_PPI_CHANNELS_USED > 4) 68 #error "Auxiliary clock module cannot handle more than 4 PPI channels" 73 #ifndef AUX_CLK_LFCLK_RTC_USED 74 #define AUX_CLK_LFCLK_RTC_USED 0 77 #ifndef AUX_CLK_HFCLK_TIMER_USED 78 #define AUX_CLK_HFCLK_TIMER_USED 2 81 #ifndef AUX_CLK_HFCLK_SOLO_MODULE 82 #define AUX_CLK_HFCLK_SOLO_MODULE 1 84 #define AUX_CLK_NO_IRQ 0xFFFFFFFF 86 #define AUX_CLK_MAX_CHANNELS 4 149 void (* callback_handler) (uint8_t events);
151 uint32_t arr_cc_ms[AUX_CLK_MAX_CHANNELS];
void aux_clk_en_evt(uint8_t events)
Function to enable one or more events from aux_clk_evt_t.
void aux_clk_set(aux_clk_setup_t *aux_clk)
Function to setup the Auxiliary clock module.
uint32_t aux_clk_get_ms(void)
Function to get ms since Auxiliary clock has started or cleared.
void aux_clk_select_src(aux_clk_source_t source)
Function to select the clock source for auxiliary clock module.
app_irq_priority_t
Priority levels that the application can use based on whether the SoftDevice (SD) is used.
void aux_clk_dis_evt(uint8_t events)
Function to disable one or more events from aux_clk_evt_t.
void aux_clk_stop()
Function to stop clock.
void aux_clk_update_irq_priority(app_irq_priority_t new_priority)
Function to change IRQ Priority if needed.
void aux_clk_clear()
Function to clear clock counter value.
app_irq_priority_t irq_priority
void aux_clk_update_cc(uint32_t cc_id, uint32_t new_val_ms)
Function to update the given CC value for clock channel.
void aux_clk_update_ppi(uint32_t ppi_channel, aux_clk_ppi_t *new_ppi)
Function to Update PPI settings for given ppi channel.