mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 19:04:15 +08:00
SAML21: Fix issue with open loop operation; Add configuration options to select clock source
This commit is contained in:
@@ -61,7 +61,9 @@
|
||||
* system clock ticks per second. That value is a user configurable setting
|
||||
* that defaults to 100 (100 ticks per second = 10 MS interval).
|
||||
*
|
||||
* Then, for example, if the CPU clock is the the SysTick and BOARD_CPU_FREQUENCY is 48MHz and CLK_TCK is 100, then the reload value would be:
|
||||
* Then, for example, if the CPU clock is the the SysTick and
|
||||
* BOARD_CPU_FREQUENCY is 48MHz and CLK_TCK is 100, then the reload value
|
||||
* would be:
|
||||
*
|
||||
* SYSTICK_RELOAD = (48,000,000 / 100) - 1
|
||||
* = 479,999
|
||||
|
||||
@@ -854,7 +854,7 @@ static inline void sam_dfll48m_config(void)
|
||||
OSCCTRL_DFLLCTRL_QLDIS | OSCCTRL_DFLLCTRL_BPLCKC |
|
||||
OSCCTRL_DFLLCTRL_WAITLOCK);
|
||||
|
||||
#if defined(BOARD_DFLL48M_CLOSELOOP)
|
||||
#if defined(BOARD_DFLL48M_CLOSEDLOOP)
|
||||
control |= OSCCTRL_DFLLCTRL_MODE; /* Closed loop mode */
|
||||
#elif defined(BOARD_DFLL48M_RECOVERY)
|
||||
control |= OSCCTRL_DFLLCTRL_USBCRM; /* USB clock recovery mode */
|
||||
|
||||
Reference in New Issue
Block a user