Module to manage auxiliary clock used by other modules like pir_sense and tssp_detect. This module will switch between RTC(LFCLK) and TIMER(HFCLK) as needed.
More...
◆ aux_clk_evt_t
List of events generated by this module
Enumerator |
---|
AUX_CLK_EVT_NON | Event generated on clock overflow
|
AUX_CLK_EVT_CC0 | Event generated channel 0 compare match
|
AUX_CLK_EVT_CC1 | Event generated channel 1 compare match
|
AUX_CLK_EVT_CC2 | Event generated channel 2 compare match
|
AUX_CLK_EVT_CC3 | Event generated channel 3 compare match
|
Definition at line 100 of file aux_clk.h.
◆ aux_clk_source_t
List of Clock sources
Enumerator |
---|
AUX_CLK_SRC_LFCLK | Low Freq Clock : RTC peripheral
|
AUX_CLK_SRC_HFCLK | High Freq Clock : Timer peripheral
|
Definition at line 91 of file aux_clk.h.
◆ aux_clk_tsk_t
List of tasks which can be performed on clocks
Enumerator |
---|
AUX_CLK_TASKS_START | Task to start the clock
|
AUX_CLK_TASKS_STOP | Task to stop the clock
|
AUX_CLK_TASKS_CLEAR | Task to clear the counter value
|
Definition at line 115 of file aux_clk.h.
◆ aux_clk_dis_evt()
void aux_clk_dis_evt |
( |
uint8_t |
events | ) |
|
- Parameters
-
events | One or more events 'or'ed together |
Definition at line 339 of file aux_clk.c.
◆ aux_clk_en_evt()
void aux_clk_en_evt |
( |
uint8_t |
events | ) |
|
- Parameters
-
events | One or more events 'or'ed together |
Definition at line 332 of file aux_clk.c.
◆ aux_clk_get_ms()
uint32_t aux_clk_get_ms |
( |
void |
| ) |
|
◆ aux_clk_select_src()
◆ aux_clk_set()
◆ aux_clk_start()
◆ aux_clk_update_cc()
void aux_clk_update_cc |
( |
uint32_t |
cc_id, |
|
|
uint32_t |
new_val_ms |
|
) |
| |
- Parameters
-
cc_id | Clock channel id |
new_val_ms | New value in milliseconds |
Definition at line 360 of file aux_clk.c.
◆ aux_clk_update_irq_priority()
- Parameters
-
new_priority | New IRQ priority. |
Definition at line 366 of file aux_clk.c.
◆ aux_clk_update_ppi()
void aux_clk_update_ppi |
( |
uint32_t |
ppi_channel, |
|
|
aux_clk_ppi_t * |
new_ppi |
|
) |
| |
- Parameters
-
ppi_channel | PPI channel of which settings are to be updated AUX_CLK_PPI_CHANNEL_x |
new_ppi | New PPI settings |
Definition at line 346 of file aux_clk.c.