diff options
| author | onelife.real <[email protected]> | 2011-07-08 07:13:20 +0000 |
|---|---|---|
| committer | onelife.real <[email protected]> | 2011-07-08 07:13:20 +0000 |
| commit | ef6bbc34fa2c49433e6b2fe6516ae288daf8d351 (patch) | |
| tree | 89052e21a48b8f5b809a636e380622a73289dcc0 /bsp/efm32/rtconfig.py | |
| parent | 7121ca6467f76d187f59e32a84e3b9dbbeabedf4 (diff) | |
*** EFM32 branch ***
1. Add ENC28J60 Ethernet controller driver
2. Add lwIP support (Please read "Readme.txt")
3. Add simple Http server demo application
4. Modify USART device write function to avoid sleep in ISR
5. Fix a bug in USART driver when using compiler optimization
6. Modify to make use the start-up code in libraries
7. Change the default build option for squeezing the executable file size
8. Modify source code alignment
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1622 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/efm32/rtconfig.py')
| -rw-r--r-- | bsp/efm32/rtconfig.py | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/bsp/efm32/rtconfig.py b/bsp/efm32/rtconfig.py index 5adf18e204..9657f1cb81 100644 --- a/bsp/efm32/rtconfig.py +++ b/bsp/efm32/rtconfig.py @@ -1,22 +1,23 @@ # toolchains options
-ARCH = 'arm'
-CPU = 'cortex-m3'
-CROSS_TOOL = 'gcc'
+ARCH = 'arm'
+CPU = 'cortex-m3'
+CROSS_TOOL = 'gcc'
if CROSS_TOOL == 'gcc':
- PLATFORM = 'gcc'
- EXEC_PATH = 'C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin'
+ PLATFORM = 'gcc'
+ EXEC_PATH = 'C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin'
+ #EXEC_PATH = 'C:\Program Files (x86)\yagarto\bin'
-BUILD = 'debug'
-# EFM32_BOARD = 'EFM32_G890_STK'
-EFM32_BOARD = 'EFM32_G290_DK'
+BUILD = 'run'
+# EFM32_BOARD = 'EFM32_G890_STK'
+EFM32_BOARD = 'EFM32_G290_DK'
if EFM32_BOARD == 'EFM32_G890_STK':
-# EFM32_FAMILY = 'Gecko'
- EFM32_TYPE = 'EFM32G890F128'
+ EFM32_FAMILY = 'Gecko'
+ EFM32_TYPE = 'EFM32G890F128'
elif EFM32_BOARD == 'EFM32_G290_DK':
-# EFM32_FAMILY = 'Gecko'
- EFM32_TYPE = 'EFM32G290F128'
+ EFM32_FAMILY = 'Gecko'
+ EFM32_TYPE = 'EFM32G290F128'
if PLATFORM == 'gcc':
# toolchains
@@ -30,10 +31,11 @@ if PLATFORM == 'gcc': OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy'
- DEVICE = ' -mcpu=cortex-m3 -mthumb'
- CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
+ DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
+ #CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
+ CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
- LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-efm32.map,-cref,-u,Reset_Handler -T efm32_rom.ld'
+ LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-efm32.map,-cref,-u,__cs3_reset -T efm32_rom.ld'
CPATH = ''
LPATH = ''
|
