1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

Merge pull request #15215 from btcven/2020_10_12-ccfg-xosc

cpu/cc26xx_cc13xx: fix typo on XOSC selection
This commit is contained in:
benpicco 2020-10-12 22:52:40 +02:00 committed by GitHub
commit 2df92b0d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ void osc_hf_source_switch(uint32_t osc)
_hf_source_set(osc);
/* Wait for the oscillator to be ready */
while (_hf_source_ready()) {}
while (!_hf_source_ready()) {}
/* If target clock source is RCOSC, change clock source for DCDC to RCOSC */
if (osc == OSC_RCOSC_HF) {

View File

@ -227,7 +227,7 @@ ccfg_regs_t cc26xx_cc13xx_ccfg = {
CCFG_MODE_CONF_RTC_COMP_m)
& CCFG_SET_BITS(SET_MODE_CONF_XOSC_FREQ,
CCFG_MODE_CONF_XOSC_FREQ_s,
CCFG_MODE_CONF_RTC_COMP_m)
CCFG_MODE_CONF_XOSC_FREQ_m)
& CCFG_SET_BITS(SET_MODE_CONF_XOSC_CAP_MOD,
CCFG_MODE_CONF_XOSC_CAP_MOD_s,
CCFG_MODE_CONF_XOSC_CAP_MOD_m)
@ -264,9 +264,9 @@ ccfg_regs_t cc26xx_cc13xx_ccfg = {
& CCFG_SET_BITS(SET_BL_CONFIG_BL_ENABLE,
CCFG_BL_CONFIG_BL_ENABLE_s,
CCFG_BL_CONFIG_BL_ENABLE_m),
.ERASE_CONF = 0,
.ERASE_CONF = 0xFFFFFFFF,
/* debugging */
.CCFG_TI_OPTIONS = 0,
.CCFG_TI_OPTIONS = 0xFFFFFF00,
.CCFG_TAP_DAP_0 = CCFG_SET_BITS(SET_CCFG_TAP_DAP_0_CPU_DAP_ENABLE,
CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE_s,
CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE_m)
@ -277,7 +277,7 @@ ccfg_regs_t cc26xx_cc13xx_ccfg = {
CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE_s,
CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE_m),
/* PBIST2, PBIST1 and AON disabled by default */
.CCFG_TAP_DAP_1 = 0,
.CCFG_TAP_DAP_1 = 0xFF000000,
/* flash image vector table */
.IMAGE_VALID_CONF = (reg32_t)&cortex_vector_base,
/* flash sector write protections */