From ac6ea8196d52e392dd33593997176ccb650e246f Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Mon, 10 Feb 2020 20:45:14 +0100 Subject: [PATCH] Moved the EEPROM macro definitions to the main CMakeLists.txt file. --- CMakeLists.txt | 2 ++ include/darwin_conf.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b08a59..eb679a2 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 b53c1a3..e3b83c3 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 -- GitLab