SAML21 minor cleanup

This commit is contained in:
Gregory Nutt 2015-05-20 13:00:39 -06:00
parent 8075f8ab84
commit 307d0d0e55
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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). */