diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b08a596c2f950728c693804a6d1b29f38da426f..eb679a2e6c02faa593189cfa3eb56ecbde450452 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,8 @@ include_directories(${header_include_dir}) add_definitions(-DUSE_HAL_DRIVER) add_definitions(-DHSE_VALUE=${system_freq}) add_definitions(-D${processor}) +add_definitions(-DEEPROM_PAGE_SIZE=0x0800) +add_definitions(-DEEPROM_START_ADDRESS=0x08003800) add_executable(${PROJECT_NAME}.elf ${lib_sources} ${hal_sources} ${asm_source} ${sources}) diff --git a/include/darwin_conf.h b/include/darwin_conf.h index b53c1a30b3aa1e065e0e35d3d7bf6d5049168e22..e3b83c3d0c9fe73e424b3a4ee53a94605c36b853 100644 --- a/include/darwin_conf.h +++ b/include/darwin_conf.h @@ -15,8 +15,6 @@ #define DEFAULT_RETURN_DELAY 0x0000 #define DEFAULT_RETURN_LEVEL 0x0002 -#define EEPROM_PAGE_SIZE 0x0800 -#define EEPROM_START_ADDRESS 0x08003800 #define NUM_MOTION_PAGES 46 #define MAX_DYN_MASTER_TX_BUFFER_LEN 1024 #define MAX_DYN_MASTER_RX_BUFFER_LEN 1024