PDMC support for ARMCC and IAR

pull/10449/head
fred.li 2019-04-22 20:42:19 +08:00
parent 4d52639e3d
commit 417051244d
2 changed files with 16 additions and 1 deletions

View File

@ -21,9 +21,19 @@
#if defined(RDA_ICACHE_DISABLE)
#define RDA_CODE_BASE (RDA_FLASH_BASE + RDA_PADDR_OFST)
#else /* RDA_ICACHE_DISABLE */
#if !defined(MBED_APP_START) /* MBED_APP_START */
#define RDA_CODE_BASE (RDA_ICACHE_BASE + RDA_PADDR_OFST)
#else /* MBED_APP_START */
#define RDA_CODE_BASE (MBED_APP_START)
#endif /* MBED_APP_START */
#endif /* RDA_ICACHE_DISABLE */
#define RDA_CODE_SIZE (0x001F4000)
#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 2000K
#endif
#define RDA_CODE_SIZE (MBED_APP_SIZE)
#define RDA_AHB1_BASE (0x40100000)
#define RDA_MEMC_BASE (RDA_AHB1_BASE + 0x00000)

View File

@ -17,7 +17,12 @@ if (0 == RDA_PARTITION_INDEX) {
if (1 == RDA_ICACHE_DISABLE) {
define symbol RDA_CODE_BASE = RDA_FLASH_BASE + RDA_PADDR_OFST;
} else {
/* MBED_APP_START */
if (!isdefinedsymbol(MBED_APP_START)) {
define symbol RDA_CODE_BASE = RDA_ICACHE_BASE + RDA_PADDR_OFST;
else
define symbol RDA_CODE_BASE = MBED_APP_START;
}
define symbol RDA_CODE_END = RDA_CODE_BASE + 0x1F3FFF;
define symbol RDA_AHB1_BASE = 0x40100000;