mirror of https://github.com/ARMmbed/mbed-os.git
Update clock calibration structs to match latest Gecko SDK
parent
8b6451c74d
commit
8067bf629f
|
|
@ -33,4 +33,25 @@
|
||||||
#define PWM_TIMER_CLOCK cmuClock_TIMER1
|
#define PWM_TIMER_CLOCK cmuClock_TIMER1
|
||||||
#define PWM_ROUTE TIMER_ROUTE_LOCATION_LOC1
|
#define PWM_ROUTE TIMER_ROUTE_LOCATION_LOC1
|
||||||
|
|
||||||
|
/* Crystal Calibration */
|
||||||
|
#if !defined(CMU_HFXOINIT_STK_DEFAULT)
|
||||||
|
#define CMU_HFXOINIT_STK_DEFAULT \
|
||||||
|
{ \
|
||||||
|
true, /* Low-power mode for EFM32 */ \
|
||||||
|
false, /* Disable auto-start on EM0/1 entry */ \
|
||||||
|
false, /* Disable auto-select on EM0/1 entry */ \
|
||||||
|
false, /* Disable auto-start and select on RAC wakeup */ \
|
||||||
|
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
||||||
|
0x142, /* Steady-state CTUNE for STK boards without load caps */ \
|
||||||
|
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
||||||
|
0x20, /* Matching errata fix in CHIP_Init() */ \
|
||||||
|
0x7, /* Recommended steady-state osc core bias current */ \
|
||||||
|
0x6, /* Recommended peak detection threshold */ \
|
||||||
|
_CMU_HFXOTIMEOUTCTRL_SHUNTOPTTIMEOUT_DEFAULT, \
|
||||||
|
0xA, /* Recommended peak detection timeout */ \
|
||||||
|
0x4, /* Recommended steady timeout */ \
|
||||||
|
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
||||||
|
cmuOscMode_Crystal, \
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -44,13 +44,14 @@
|
||||||
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
||||||
0x142, /* Steady-state CTUNE for WSTK boards without load caps */ \
|
0x142, /* Steady-state CTUNE for WSTK boards without load caps */ \
|
||||||
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
||||||
_CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
|
0x20, /* Matching errata fix in CHIP_Init() */ \
|
||||||
0x7, /* Recommended steady-state XO core bias current */ \
|
0x7, /* Recommended steady-state osc core bias current */ \
|
||||||
0x6, /* Recommended peak detection threshold */ \
|
0x6, /* Recommended peak detection threshold */ \
|
||||||
_CMU_HFXOTIMEOUTCTRL_SHUNTOPTTIMEOUT_DEFAULT, \
|
_CMU_HFXOTIMEOUTCTRL_SHUNTOPTTIMEOUT_DEFAULT, \
|
||||||
0xA, /* Recommended peak detection timeout */ \
|
0xA, /* Recommended peak detection timeout */ \
|
||||||
_CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
|
0x4, /* Recommended steady timeout */ \
|
||||||
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
||||||
|
cmuOscMode_Crystal, \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
false, /* Disable auto-select on EM0/1 entry */ \
|
false, /* Disable auto-select on EM0/1 entry */ \
|
||||||
false, /* Disable auto-start and select on RAC wakeup */ \
|
false, /* Disable auto-start and select on RAC wakeup */ \
|
||||||
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
||||||
0x142, /* Steady-state CTUNE for WSTK boards without load caps */ \
|
0x142, /* Steady-state CTUNE for TBSENSE boards without load caps */ \
|
||||||
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
||||||
_CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
|
_CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
|
||||||
0x7, /* Recommended steady-state XO core bias current */ \
|
0x7, /* Recommended steady-state XO core bias current */ \
|
||||||
|
|
@ -51,6 +51,7 @@
|
||||||
0xA, /* Recommended peak detection timeout */ \
|
0xA, /* Recommended peak detection timeout */ \
|
||||||
_CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
|
_CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
|
||||||
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
||||||
|
cmuOscMode_Crystal, \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
false, /* Disable auto-select on EM0/1 entry */ \
|
false, /* Disable auto-select on EM0/1 entry */ \
|
||||||
false, /* Disable auto-start and select on RAC wakeup */ \
|
false, /* Disable auto-start and select on RAC wakeup */ \
|
||||||
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
_CMU_HFXOSTARTUPCTRL_CTUNE_DEFAULT, \
|
||||||
0x142, /* Steady-state CTUNE for WSTK boards without load caps */ \
|
0x142, /* Steady-state CTUNE for TBSENSE boards without load caps */ \
|
||||||
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
_CMU_HFXOSTEADYSTATECTRL_REGISH_DEFAULT, \
|
||||||
_CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
|
_CMU_HFXOSTARTUPCTRL_IBTRIMXOCORE_DEFAULT, \
|
||||||
0x7, /* Recommended steady-state XO core bias current */ \
|
0x7, /* Recommended steady-state XO core bias current */ \
|
||||||
|
|
@ -51,6 +51,7 @@
|
||||||
0xA, /* Recommended peak detection timeout */ \
|
0xA, /* Recommended peak detection timeout */ \
|
||||||
_CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
|
_CMU_HFXOTIMEOUTCTRL_STEADYTIMEOUT_DEFAULT, \
|
||||||
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
_CMU_HFXOTIMEOUTCTRL_STARTUPTIMEOUT_DEFAULT, \
|
||||||
|
cmuOscMode_Crystal, \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue