fix: ifdef
This commit is contained in:
@@ -3,9 +3,14 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// #define USE_ROM_TABLES
|
||||
|
||||
#ifdef USE_ROM_TABLES
|
||||
#define CPU_CLK_TABLE 0x00046E68
|
||||
#define XTAL_TABLE_ROM 0x00046E10
|
||||
#define CPU_CLK_TABLE_ADDR 0x00046E68
|
||||
#define XTAL_TABLE_ADDR 0x00046E10
|
||||
/* for init inline asm */
|
||||
#define CPU_CLK_TABLE ((const uint32_t*)CPU_CLK_TABLE_ADDR)
|
||||
#define XTAL_TABLE ((const uint32_t*)XTAL_TABLE_ADDR)
|
||||
#else
|
||||
|
||||
/* CPU clock frequency table (Hz) */
|
||||
@@ -32,6 +37,10 @@ static const uint32_t XTAL_TABLE[] = {
|
||||
14318000, /* 14.318 MHz */
|
||||
12000000, /* 12 MHz */
|
||||
};
|
||||
/* for init inline asm */
|
||||
#define CPU_CLK_TABLE_ADDR ((uint32_t)CPU_CLK_TABLE)
|
||||
#define XTAL_TABLE_ADDR ((uint32_t)XTAL_TABLE)
|
||||
|
||||
#endif
|
||||
|
||||
/* System Clock Frequency (Core Clock)*/
|
||||
|
||||
Reference in New Issue
Block a user