support GCC compiler for LM3S platform
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@236 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
017d2b7662
commit
4de2f13fcd
|
@ -15,6 +15,11 @@
|
||||||
#ifndef __BOARD_H__
|
#ifndef __BOARD_H__
|
||||||
#define __BOARD_H__
|
#define __BOARD_H__
|
||||||
|
|
||||||
|
// <o> Internal SRAM memory size[Kbytes] <8-64>
|
||||||
|
// <i>Default: 64
|
||||||
|
#define LM3S_SRAM_SIZE 64
|
||||||
|
#define LM3S_SRAM_END (0x20000000 + LM3S_SRAM_SIZE * 1024)
|
||||||
|
|
||||||
void rt_hw_board_led_on(int n);
|
void rt_hw_board_led_on(int n);
|
||||||
void rt_hw_board_led_off(int n);
|
void rt_hw_board_led_off(int n);
|
||||||
void rt_hw_board_init(void);
|
void rt_hw_board_init(void);
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup LM3S
|
* @addtogroup LM3S
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern void rt_hw_serial_init(void);
|
extern void rt_hw_serial_init(void);
|
||||||
|
|
||||||
/*@{*/
|
/*@{*/
|
||||||
#ifdef RT_USING_FINSH
|
#ifdef RT_USING_FINSH
|
||||||
|
@ -82,12 +82,12 @@ void rtthread_startup(void)
|
||||||
|
|
||||||
#ifdef RT_USING_HEAP
|
#ifdef RT_USING_HEAP
|
||||||
#ifdef __CC_ARM
|
#ifdef __CC_ARM
|
||||||
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)0x20010000);
|
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)LM3S_SRAM_END);
|
||||||
#elif __ICCARM__
|
#elif __ICCARM__
|
||||||
rt_system_heap_init(__segment_end("HEAP"), (void*)0x20010000);
|
rt_system_heap_init(__segment_end("HEAP"), (void*)LM3S_SRAM_END);
|
||||||
#else
|
#else
|
||||||
/* init memory system */
|
/* init memory system */
|
||||||
rt_system_heap_init((void*)&__bss_end, (void*)0x20010000);
|
rt_system_heap_init((void*)&__bss_end, (void*)LM3S_SRAM_END);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,32 +1,3 @@
|
||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @file startup_stm32f10x_hd.s
|
|
||||||
* @author MCD Application Team
|
|
||||||
* @version V3.1.2
|
|
||||||
* @date 09/28/2009
|
|
||||||
* @brief STM32F10x High Density Devices vector table for RIDE7 toolchain.
|
|
||||||
* This module performs:
|
|
||||||
* - Set the initial SP
|
|
||||||
* - Set the initial PC == Reset_Handler,
|
|
||||||
* - Set the vector table entries with the exceptions ISR address,
|
|
||||||
* - Configure external SRAM mounted on STM3210E-EVAL board
|
|
||||||
* to be used as data memory (optional, to be enabled by user)
|
|
||||||
* - Branches to main in the C library (which eventually
|
|
||||||
* calls main()).
|
|
||||||
* After Reset the Cortex-M3 processor is in Thread mode,
|
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
|
||||||
******************************************************************************
|
|
||||||
* @copy
|
|
||||||
*
|
|
||||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
|
||||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
|
||||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
|
||||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
|
||||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
|
||||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
|
||||||
*
|
|
||||||
* <h2><center>© COPYRIGHT 2009 STMicroelectronics</center></h2>
|
|
||||||
*/
|
|
||||||
.section .bss.init
|
.section .bss.init
|
||||||
.equ Stack_Size, 0x00000200
|
.equ Stack_Size, 0x00000200
|
||||||
.space Stack_Size
|
.space Stack_Size
|
||||||
|
@ -52,8 +23,6 @@ defined in linker script */
|
||||||
/* end address for the .bss section. defined in linker script */
|
/* end address for the .bss section. defined in linker script */
|
||||||
.word _ebss
|
.word _ebss
|
||||||
|
|
||||||
// .equ Initial_spTop, 0x20000200
|
|
||||||
.equ BootRAM, 0xF1E0F85F
|
|
||||||
/**
|
/**
|
||||||
* @brief This is the code that gets called when the processor first
|
* @brief This is the code that gets called when the processor first
|
||||||
* starts execution following a reset event. Only the absolutely
|
* starts execution following a reset event. Only the absolutely
|
||||||
|
@ -131,17 +100,17 @@ Infinite_Loop:
|
||||||
g_pfnVectors:
|
g_pfnVectors:
|
||||||
.word Initial_spTop
|
.word Initial_spTop
|
||||||
.word Reset_Handler
|
.word Reset_Handler
|
||||||
.word Default_Handler //NMI_Handler
|
.word Default_Handler //NMI_Handler
|
||||||
.word rt_hw_hard_fault
|
.word rt_hw_hard_fault
|
||||||
.word Default_Handler //MemManage_Handler
|
.word Default_Handler //MemManage_Handler
|
||||||
.word Default_Handler //BusFault_Handler
|
.word Default_Handler //BusFault_Handler
|
||||||
.word Default_Handler //UsageFault_Handler
|
.word Default_Handler //UsageFault_Handler
|
||||||
.word 0
|
.word 0
|
||||||
.word 0
|
.word 0
|
||||||
.word 0
|
.word 0
|
||||||
.word 0
|
.word 0
|
||||||
.word Default_Handler //SVC_Handler
|
.word Default_Handler //SVC_Handler
|
||||||
.word Default_Handler //DebugMon_Handler
|
.word Default_Handler //DebugMon_Handler
|
||||||
.word 0
|
.word 0
|
||||||
.word rt_hw_pend_sv
|
.word rt_hw_pend_sv
|
||||||
.word rt_hw_timer_handler
|
.word rt_hw_timer_handler
|
||||||
|
|
Loading…
Reference in New Issue