gazell/nrf24le1/gzll_mcu.h File Reference

Gazell Link Layer MCU setup header file. More...

#include "nrf24le1.h"

Go to the source code of this file.

Functions

Gazell Link Layer Hardware Dependencies
void mcu_init (void)
 Initializes the MCU for Gazell.

Detailed Description

Gazell Link Layer MCU setup header file.

Definition in file gzll_mcu.h.


Function Documentation

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) {}
}