rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack

CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
This commit is contained in:
hathach
2023-07-24 15:46:21 +07:00
parent a268e0b7a3
commit ef49b93532
26 changed files with 68 additions and 88 deletions

View File

@@ -38,6 +38,7 @@ function(add_board_target BOARD_TARGET)
target_compile_definitions(${BOARD_TARGET} PUBLIC
__USE_LPCOPEN
CORE_M4
CFG_TUSB_MEM_SECTION=__attribute__\(\(section\(\".data.$RAM2\"\)\)\)
)
target_include_directories(${BOARD_TARGET} PUBLIC
${SDK_DIR}/inc

View File

@@ -9,8 +9,7 @@ CFLAGS += \
-nostdlib \
-DCORE_M4 \
-D__USE_LPCOPEN \
-DCFG_TUD_MEM_SECTION='__attribute__((section(".data.$$RAM2")))' \
-DCFG_TUH_MEM_SECTION='__attribute__((section(".data.$$RAM2")))' \
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM2")))' \
-DCFG_TUSB_MCU=OPT_MCU_LPC40XX
# mcu driver cause following warnings