From 6df5634b52d2b202414e52dcadc2700bc2cbf9ef Mon Sep 17 00:00:00 2001 From: liruncong Date: Tue, 9 Feb 2021 23:25:56 +0800 Subject: [bsp]SECTION=>RT_SECTION(与catch2中SECTION冲突) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/lpc43xx/M0/applications/vbus_drv.c | 2 +- bsp/lpc43xx/M4/applications/application.c | 2 +- bsp/lpc43xx/M4/applications/vbus_drv.c | 2 +- bsp/lpc43xx/drivers/drv_emac.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bsp/lpc43xx') diff --git a/bsp/lpc43xx/M0/applications/vbus_drv.c b/bsp/lpc43xx/M0/applications/vbus_drv.c index 88d5321b30..696535247f 100644 --- a/bsp/lpc43xx/M0/applications/vbus_drv.c +++ b/bsp/lpc43xx/M0/applications/vbus_drv.c @@ -14,7 +14,7 @@ #include #include -struct rt_vbus_ring rt_vbus_rings[2] SECTION("vbus_ring"); +struct rt_vbus_ring rt_vbus_rings[2] RT_SECTION("vbus_ring"); int rt_vbus_do_init(void) { diff --git a/bsp/lpc43xx/M4/applications/application.c b/bsp/lpc43xx/M4/applications/application.c index 1c31c9da73..8fb1a4ae83 100644 --- a/bsp/lpc43xx/M4/applications/application.c +++ b/bsp/lpc43xx/M4/applications/application.c @@ -22,7 +22,7 @@ #include #endif -static const unsigned char _M0_CODE[] SECTION("M0_CODE") = { +static const unsigned char _M0_CODE[] RT_SECTION("M0_CODE") = { #include "M0_CODE.h" }; diff --git a/bsp/lpc43xx/M4/applications/vbus_drv.c b/bsp/lpc43xx/M4/applications/vbus_drv.c index bd3ae03adb..09fd2373c4 100644 --- a/bsp/lpc43xx/M4/applications/vbus_drv.c +++ b/bsp/lpc43xx/M4/applications/vbus_drv.c @@ -14,7 +14,7 @@ #include #include -struct rt_vbus_ring rt_vbus_rings[2] SECTION("vbus_ring"); +struct rt_vbus_ring rt_vbus_rings[2] RT_SECTION("vbus_ring"); int rt_vbus_do_init(void) { diff --git a/bsp/lpc43xx/drivers/drv_emac.c b/bsp/lpc43xx/drivers/drv_emac.c index d1f02af768..b8875c340c 100644 --- a/bsp/lpc43xx/drivers/drv_emac.c +++ b/bsp/lpc43xx/drivers/drv_emac.c @@ -20,7 +20,7 @@ #define EMAC_PHY_100MBIT 2 #define MAX_ADDR_LEN 6 -static rt_uint32_t ETH_RAM_BASE[4 * 1024] SECTION("ETH_RAM"); +static rt_uint32_t ETH_RAM_BASE[4 * 1024] RT_SECTION("ETH_RAM"); /* EMAC variables located in 16K Ethernet SRAM */ #define RX_DESC_BASE (uint32_t)Ð_RAM_BASE[0] -- cgit v1.3.1