diff options
| author | hathach <[email protected]> | 2023-07-24 15:46:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-07-24 15:46:21 +0700 |
| commit | ef49b93532a7360703ae87d36cf463169f86f20b (patch) | |
| tree | 4e44f8f9bbf14eea83171d392030989fcfad5e8b /hw | |
| parent | a268e0b7a31a9b459913e29d04c7f576633f9078 (diff) | |
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/lpc40/family.cmake | 1 | ||||
| -rw-r--r-- | hw/bsp/lpc40/family.mk | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/bsp/lpc40/family.cmake b/hw/bsp/lpc40/family.cmake index 03caa4385..54410e1a7 100644 --- a/hw/bsp/lpc40/family.cmake +++ b/hw/bsp/lpc40/family.cmake @@ -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 diff --git a/hw/bsp/lpc40/family.mk b/hw/bsp/lpc40/family.mk index 47d25b885..0fc7095f5 100644 --- a/hw/bsp/lpc40/family.mk +++ b/hw/bsp/lpc40/family.mk @@ -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 |
