osc32kctrl: implement CONF_SLCDCTRL_SRC setting
This commit is contained in:
parent
74f8747764
commit
5dac14974c
@ -82,5 +82,7 @@ void _osc32kctrl_init_sources(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
hri_osc32kctrl_write_RTCCTRL_reg(hw, OSC32KCTRL_RTCCTRL_RTCSEL(CONF_RTCCTRL));
|
hri_osc32kctrl_write_RTCCTRL_reg(hw, OSC32KCTRL_RTCCTRL_RTCSEL(CONF_RTCCTRL));
|
||||||
|
hri_osc32kctrl_write_SLCDCTRL_SLCDSEL_bit(hw, CONF_SLCDCTRL_SRC);
|
||||||
|
|
||||||
(void)calib;
|
(void)calib;
|
||||||
}
|
}
|
||||||
|
@ -50,12 +50,12 @@
|
|||||||
|
|
||||||
// <h> SLCD source control
|
// <h> SLCD source control
|
||||||
// <y> SLCD Clock Source Selection
|
// <y> SLCD Clock Source Selection
|
||||||
// <GCLK_GENCTRL_SRC_OSCULP32K"> 32kHz Ultra Low Power Internal Oscillator (OSCULP32K)
|
// <0> 32kHz Ultra Low Power Internal Oscillator (OSCULP32K)
|
||||||
// <GCLK_GENCTRL_SRC_XOSC32K"> 32kHz External Crystal Oscillator (XOSC32K)
|
// <1> 32kHz External Crystal Oscillator (XOSC32K)
|
||||||
// <i> This defines the clock source for SLCD
|
// <i> This defines the clock source for SLCD
|
||||||
// <id> slcd_source_oscillator
|
// <id> slcd_source_oscillator
|
||||||
#ifndef CONF_SLCDCTRL_SRC
|
#ifndef CONF_SLCDCTRL_SRC
|
||||||
#define CONF_SLCDCTRL_SRC GCLK_GENCTRL_SRC_XOSC32K
|
#define CONF_SLCDCTRL_SRC 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// </h>
|
// </h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user