mirror of
https://github.com/apache/nuttx.git
synced 2026-08-26 11:50:50 +00:00
SAML21 minor cleanup
This commit is contained in:
parent
8075f8ab84
commit
307d0d0e55
2 changed files with 4 additions and 3 deletions
|
|
@ -47,6 +47,8 @@
|
|||
|
||||
#include <arch/chip/chip.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
|
||||
#if defined(CONFIG_ARCH_FAMILY_SAMD20)
|
||||
# include "chip/samd_usart.h"
|
||||
#elif defined(CONFIG_ARCH_FAMILY_SAML21)
|
||||
|
|
|
|||
|
|
@ -816,9 +816,9 @@ 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_CLOSELOOP)
|
||||
control |= OSCCTRL_DFLLCTRL_MODE; /* Closed loop mode */
|
||||
#if defined(BOARD_DFLL48M_RECOVERY
|
||||
#elif defined(BOARD_DFLL48M_RECOVERY)
|
||||
control |= OSCCTRL_DFLLCTRL_USBCRM; /* USB clock recovery mode */
|
||||
#endif
|
||||
|
||||
|
|
@ -897,7 +897,6 @@ static inline void sam_dfll48m_config(void)
|
|||
static inline void sam_dfll48m_enable(void)
|
||||
{
|
||||
uint16_t control;
|
||||
uint32_t regval;
|
||||
|
||||
/* Enable the DFLL48M (with ONDEMAND still set to zero). */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue