sn32: allow mcuconf to override system
This commit is contained in:
parent
f4f08b1b9b
commit
c34385de6b
|
@ -91,16 +91,36 @@
|
|||
//</e>
|
||||
*/
|
||||
|
||||
#ifndef SYS_CLOCK_SETUP
|
||||
#define SYS_CLOCK_SETUP 1
|
||||
#endif
|
||||
#ifndef SYS0_CLKCFG_VAL
|
||||
#define SYS0_CLKCFG_VAL 0
|
||||
#endif
|
||||
#ifndef EHS_FREQ
|
||||
#define EHS_FREQ 10
|
||||
#endif
|
||||
#ifndef PLL_MSEL
|
||||
#define PLL_MSEL 12
|
||||
#endif
|
||||
#ifndef PLL_PSEL
|
||||
#define PLL_PSEL 3
|
||||
#endif
|
||||
#ifndef PLL_FSEL
|
||||
#define PLL_FSEL 0
|
||||
#endif
|
||||
#ifndef PLL_CLKIN
|
||||
#define PLL_CLKIN 1
|
||||
#endif
|
||||
#ifndef PLL_ENABLE
|
||||
#define PLL_ENABLE 0
|
||||
#endif
|
||||
#ifndef AHB_PRESCALAR
|
||||
#define AHB_PRESCALAR 0x0
|
||||
#endif
|
||||
#ifndef CLKOUT_SEL_VAL
|
||||
#define CLKOUT_SEL_VAL 0x0
|
||||
#endif
|
||||
|
||||
/*
|
||||
//-------- <<< end of configuration section >>> ------------------------------
|
||||
|
@ -110,12 +130,21 @@
|
|||
/*----------------------------------------------------------------------------
|
||||
DEFINES
|
||||
*----------------------------------------------------------------------------*/
|
||||
#ifndef IHRC
|
||||
#define IHRC 0
|
||||
#endif
|
||||
#ifndef ILRC
|
||||
#define ILRC 1
|
||||
#endif
|
||||
#ifndef EHSXTAL
|
||||
#define EHSXTAL 2
|
||||
#endif
|
||||
#ifndef ELSXTAL
|
||||
#define ELSXTAL 3
|
||||
#endif
|
||||
#ifndef PLL
|
||||
#define PLL 4
|
||||
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
Define clocks
|
||||
|
|
|
@ -95,16 +95,36 @@
|
|||
*/
|
||||
|
||||
|
||||
#ifndef SYS0_CLKCFG_VAL
|
||||
#define SYS0_CLKCFG_VAL 0
|
||||
#endif
|
||||
#ifndef EHS_FREQ
|
||||
#define EHS_FREQ 16
|
||||
#endif
|
||||
#ifndef PLL_ENABLE
|
||||
#define PLL_ENABLE 0
|
||||
#endif
|
||||
#ifndef PLL_MSEL
|
||||
#define PLL_MSEL 1
|
||||
#endif
|
||||
#ifndef PLL_PSEL
|
||||
#define PLL_PSEL 0
|
||||
#endif
|
||||
#ifndef PLL_CLKIN
|
||||
#define PLL_CLKIN 0
|
||||
#endif
|
||||
#ifndef AHB_PRESCALAR
|
||||
#define AHB_PRESCALAR 0x0
|
||||
#endif
|
||||
#ifndef AHB_1P5PRESCALAR
|
||||
#define AHB_1P5PRESCALAR 0x0
|
||||
#endif
|
||||
#ifndef CLKOUT_SEL_VAL
|
||||
#define CLKOUT_SEL_VAL 0x0
|
||||
#endif
|
||||
#ifndef CLKOUT_PRESCALAR
|
||||
#define CLKOUT_PRESCALAR 0x0
|
||||
#endif
|
||||
|
||||
/*
|
||||
//-------- <<< end of configuration section >>> ------------------------------
|
||||
|
@ -114,12 +134,21 @@
|
|||
/*----------------------------------------------------------------------------
|
||||
DEFINES
|
||||
*----------------------------------------------------------------------------*/
|
||||
#ifndef IHRC
|
||||
#define IHRC 0
|
||||
#endif
|
||||
#ifndef ILRC
|
||||
#define ILRC 1
|
||||
#endif
|
||||
#ifndef EHSXTAL
|
||||
#define EHSXTAL 2
|
||||
#endif
|
||||
#ifndef ELSXTAL
|
||||
#define ELSXTAL 3
|
||||
#endif
|
||||
#ifndef PLL
|
||||
#define PLL 4
|
||||
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
Define clocks
|
||||
|
|
|
@ -94,17 +94,36 @@
|
|||
// <7=> CLKOUT selection/128
|
||||
*/
|
||||
|
||||
|
||||
#ifndef SYS0_CLKCFG_VAL
|
||||
#define SYS0_CLKCFG_VAL 0
|
||||
#endif
|
||||
#ifndef EHS_FREQ
|
||||
#define EHS_FREQ 16
|
||||
#endif
|
||||
#ifndef PLL_ENABLE
|
||||
#define PLL_ENABLE 0
|
||||
#endif
|
||||
#ifndef PLL_MSEL
|
||||
#define PLL_MSEL 1
|
||||
#endif
|
||||
#ifndef PLL_PSEL
|
||||
#define PLL_PSEL 0
|
||||
#endif
|
||||
#ifndef PLL_CLKIN
|
||||
#define PLL_CLKIN 0
|
||||
#endif
|
||||
#ifndef AHB_PRESCALAR
|
||||
#define AHB_PRESCALAR 0x0
|
||||
#endif
|
||||
#ifndef AHB_1P5PRESCALAR
|
||||
#define AHB_1P5PRESCALAR 0x0
|
||||
#endif
|
||||
#ifndef CLKOUT_SEL_VAL
|
||||
#define CLKOUT_SEL_VAL 0x0
|
||||
#endif
|
||||
#ifndef CLKOUT_PRESCALAR
|
||||
#define CLKOUT_PRESCALAR 0x0
|
||||
#endif
|
||||
|
||||
/*
|
||||
//-------- <<< end of configuration section >>> ------------------------------
|
||||
|
@ -114,12 +133,21 @@
|
|||
/*----------------------------------------------------------------------------
|
||||
DEFINES
|
||||
*----------------------------------------------------------------------------*/
|
||||
#ifndef IHRC
|
||||
#define IHRC 0
|
||||
#endif
|
||||
#ifndef ILRC
|
||||
#define ILRC 1
|
||||
#endif
|
||||
#ifndef EHSXTAL
|
||||
#define EHSXTAL 2
|
||||
#endif
|
||||
#ifndef ELSXTAL
|
||||
#define ELSXTAL 3
|
||||
#endif
|
||||
#ifndef PLL
|
||||
#define PLL 4
|
||||
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
Define clocks
|
||||
|
|
Loading…
Reference in New Issue