sn32: 260: inherit mcuconf.h and build the system

This commit is contained in:
Dimitris Mantzouranis 2021-10-04 23:33:01 +03:00
parent 283eb6f658
commit c839ae7580
2 changed files with 14 additions and 9 deletions

View File

@ -56,11 +56,18 @@
// <5=> IHRC // <5=> IHRC
//</e> //</e>
*/ */
#ifndef SYS_CLOCK_SETUP
#define SYS_CLOCK_SETUP 1 #define SYS_CLOCK_SETUP 1
#endif
#ifndef SYS0_CLKCFG_VAL
#define SYS0_CLKCFG_VAL 0 #define SYS0_CLKCFG_VAL 0
#endif
#ifndef AHB_PRESCALAR
#define AHB_PRESCALAR 0x0 #define AHB_PRESCALAR 0x0
#endif
#ifndef CLKOUT_SEL_VAL
#define CLKOUT_SEL_VAL 0x0 #define CLKOUT_SEL_VAL 0x0
#endif
/* /*
//-------- <<< end of configuration section >>> ------------------------------ //-------- <<< end of configuration section >>> ------------------------------
@ -70,8 +77,12 @@
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
DEFINES DEFINES
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
#ifndef IHRC
#define IHRC 0 #define IHRC 0
#endif
#ifndef ILRC
#define ILRC 1 #define ILRC 1
#endif
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Define clocks Define clocks

View File

@ -57,13 +57,7 @@
* @special * @special
*/ */
void sn32_clock_init(void) { void sn32_clock_init(void) {
SystemCoreClockUpdate();
}
void SystemInit(void) {
}
void SystemCoreClockUpdate(void) {
} }
/** /**
@ -73,7 +67,7 @@ void SystemCoreClockUpdate(void) {
*/ */
void hal_lld_init(void) { void hal_lld_init(void) {
SystemInit(); SystemInit();
SystemCoreClockUpdate(); sn32_clock_init();
} }
/** @} */ /** @} */