Gazell Link Layer nRF24LE1 specific functions implementation. More...
#include "gzll.h"
#include "hal_clk.h"
#include "hal_rtc.h"
Go to the source code of this file.
Functions | |
void | mcu_init (void) |
Initializes the MCU for Gazell. | |
void | gzll_set_timer_period (uint16_t period) |
Gazell Link Layer nRF24LE1 specific functions implementation.
Definition in file gzll_mcu.c.
void mcu_init | ( | void | ) |
Initializes the MCU for Gazell.
Definition at line 22 of file gzll_mcu.c.
{ hal_clklf_set_source(HAL_CLKLF_XOSC16M_SYNTH); // Synthesize 32 KHz from 16 MHz clock hal_rtc_set_compare_mode(HAL_RTC_COMPARE_MODE_0); // Use 32 KHz timer mode 0 hal_clk_regret_xosc16m_on(true); // Keep XOSC16M on in register retention while (hal_clk_get_16m_source() != HAL_CLK_XOSC16M) {} }