|
|
@ -2,7 +2,7 @@
|
|
|
|
#define _CONF_CLOCKS_H_
|
|
|
|
#define _CONF_CLOCKS_H_
|
|
|
|
#include "clocks.h"
|
|
|
|
#include "clocks.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define CORE_CONF_MCLK_NVM_WAIT_STATE 0x0
|
|
|
|
#define CORE_CONF_MCLK_NVM_WAIT_STATE 0x5
|
|
|
|
#define CORE_CONF_MCLK_CPUDIV MCLK_CPUDIV_DIV_DIV1_Val
|
|
|
|
#define CORE_CONF_MCLK_CPUDIV MCLK_CPUDIV_DIV_DIV1_Val
|
|
|
|
|
|
|
|
|
|
|
|
// DMA Config
|
|
|
|
// DMA Config
|
|
|
@ -19,13 +19,11 @@
|
|
|
|
#define CORE_CONF_CLK_XOSC0_RUNSTDBY (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_RUNSTDBY (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_ONDEMAND (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_ONDEMAND (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_LOWBUFGAIN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_LOWBUFGAIN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_IPTAT CORE_CONF_CLK_XOSCCTRL_IPTAT_8MHZ_TO_16MHZ
|
|
|
|
|
|
|
|
#define CORE_CONF_CLK_XOSC0_IMULT CORE_CONF_CLK_XOSCCTRL_IMULT_8MHZ_TO_16MHZ
|
|
|
|
|
|
|
|
#define CORE_CONF_CLK_XOSC0_ENALC (1)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_ENALC (1)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_CFDEN (1)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_CFDEN (1)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_SWBEN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_SWBEN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_STARTUP_TIME CORE_CONF_CLK_XOSCCTRL_STARTUP_31us
|
|
|
|
#define CORE_CONF_CLK_XOSC0_STARTUP_TIME CORE_CONF_CLK_XOSCCTRL_STARTUP_31us
|
|
|
|
#define CORE_CONF_CLK_XOSC0_CFDPRESC (0x03)
|
|
|
|
#define CORE_CONF_CLK_XOSC0_FREQUENCY 12000000
|
|
|
|
|
|
|
|
|
|
|
|
// XOSC1 Config
|
|
|
|
// XOSC1 Config
|
|
|
|
#define CORE_CONF_CLK_XOSC1_ENABLE (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_ENABLE (0)
|
|
|
@ -33,13 +31,11 @@
|
|
|
|
#define CORE_CONF_CLK_XOSC1_RUNSTDBY (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_RUNSTDBY (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_ONDEMAND (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_ONDEMAND (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_LOWBUFGAIN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_LOWBUFGAIN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_IPTAT CORE_CONF_CLK_XOSCCTRL_IPTAT_8MHZ
|
|
|
|
|
|
|
|
#define CORE_CONF_CLK_XOSC1_IMULT CORE_CONF_CLK_XOSCCTRL_IMULT_8MHZ
|
|
|
|
|
|
|
|
#define CORE_CONF_CLK_XOSC1_ENALC (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_ENALC (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_CFDEN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_CFDEN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_SWBEN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_SWBEN (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_STARTUP_TIME CORE_CONF_CLK_XOSCCTRL_STARTUP_31us
|
|
|
|
#define CORE_CONF_CLK_XOSC1_STARTUP_TIME CORE_CONF_CLK_XOSCCTRL_STARTUP_31us
|
|
|
|
#define CORE_CONF_CLK_XOSC1_CFDPRESC (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC1_FREQUENCY 12000000
|
|
|
|
|
|
|
|
|
|
|
|
// XOSC32K Config
|
|
|
|
// XOSC32K Config
|
|
|
|
#define CORE_CONF_CLK_XOSC32K_ENABLE (0)
|
|
|
|
#define CORE_CONF_CLK_XOSC32K_ENABLE (0)
|
|
|
|