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
//</e>
*/
#ifndef SYS_CLOCK_SETUP
#define SYS_CLOCK_SETUP 1
#endif
#ifndef SYS0_CLKCFG_VAL
#define SYS0_CLKCFG_VAL 0
#endif
#ifndef AHB_PRESCALAR
#define AHB_PRESCALAR 0x0
#endif
#ifndef CLKOUT_SEL_VAL
#define CLKOUT_SEL_VAL 0x0
#endif
/*
//-------- <<< end of configuration section >>> ------------------------------
@ -70,8 +77,12 @@
/*----------------------------------------------------------------------------
DEFINES
*----------------------------------------------------------------------------*/
#ifndef IHRC
#define IHRC 0
#endif
#ifndef ILRC
#define ILRC 1
#endif
/*----------------------------------------------------------------------------
Define clocks

View File

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