Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
人间散章
rt-thread
提交
b21c35df
R
rt-thread
项目概览
人间散章
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b21c35df
编写于
7月 21, 2014
作者:
A
ArdaFu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp] Add IAR EWARM project template for SCONS project auto generation.
上级
d1a4f2e8
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
1917 addition
and
10 deletion
+1917
-10
bsp/tm4c129x/applications/board.c
bsp/tm4c129x/applications/board.c
+2
-1
bsp/tm4c129x/drivers/drv_uart.c
bsp/tm4c129x/drivers/drv_uart.c
+2
-2
bsp/tm4c129x/libraries/startup/startup_ewarm.c
bsp/tm4c129x/libraries/startup/startup_ewarm.c
+8
-5
bsp/tm4c129x/libraries/startup/startup_gcc.c
bsp/tm4c129x/libraries/startup/startup_gcc.c
+4
-2
bsp/tm4c129x/template.ewp
bsp/tm4c129x/template.ewp
+1889
-0
bsp/tm4c129x/template.eww
bsp/tm4c129x/template.eww
+10
-0
bsp/tm4c129x/tm4c_rom.icf
bsp/tm4c129x/tm4c_rom.icf
+2
-0
未找到文件。
bsp/tm4c129x/applications/board.c
浏览文件 @
b21c35df
...
@@ -61,6 +61,7 @@ extern void HardFault_Handler(void);
...
@@ -61,6 +61,7 @@ extern void HardFault_Handler(void);
*/
*/
void
rt_hw_board_init
()
void
rt_hw_board_init
()
{
{
MAP_IntMasterDisable
();
IntRegister
(
FAULT_HARD
,
HardFault_Handler
);
IntRegister
(
FAULT_HARD
,
HardFault_Handler
);
IntRegister
(
FAULT_PENDSV
,
PendSV_Handler
);
IntRegister
(
FAULT_PENDSV
,
PendSV_Handler
);
IntRegister
(
FAULT_SYSTICK
,
SysTick_Handler
);
IntRegister
(
FAULT_SYSTICK
,
SysTick_Handler
);
...
@@ -87,7 +88,7 @@ void rt_hw_board_init()
...
@@ -87,7 +88,7 @@ void rt_hw_board_init()
MAP_SysTickEnable
();
MAP_SysTickEnable
();
/* set pend exception priority */
/* set pend exception priority */
IntPrioritySet
(
FAULT_PENDSV
,
(
1
<<
5
)
-
1
);
//
IntPrioritySet(FAULT_PENDSV, (1 << 5) - 1);
/*init uart device*/
/*init uart device*/
rt_hw_uart_init
();
rt_hw_uart_init
();
...
...
bsp/tm4c129x/drivers/drv_uart.c
浏览文件 @
b21c35df
...
@@ -36,7 +36,7 @@ typedef struct hw_uart_device
...
@@ -36,7 +36,7 @@ typedef struct hw_uart_device
static
rt_err_t
hw_configure
(
struct
rt_serial_device
*
serial
,
struct
serial_configure
*
cfg
)
static
rt_err_t
hw_configure
(
struct
rt_serial_device
*
serial
,
struct
serial_configure
*
cfg
)
{
{
uint32_t
config
;
uint32_t
config
=
0
;
hw_uart_t
*
uart
;
hw_uart_t
*
uart
;
RT_ASSERT
(
serial
!=
RT_NULL
);
RT_ASSERT
(
serial
!=
RT_NULL
);
uart
=
mUartGetHwPtr
(
serial
);
uart
=
mUartGetHwPtr
(
serial
);
...
@@ -206,7 +206,7 @@ int rt_hw_uart_init(void)
...
@@ -206,7 +206,7 @@ int rt_hw_uart_init(void)
MAP_SysCtlPeripheralEnable
(
SYSCTL_PERIPH_UART0
);
MAP_SysCtlPeripheralEnable
(
SYSCTL_PERIPH_UART0
);
/* preemption = 1, sub-priority = 1 */
/* preemption = 1, sub-priority = 1 */
IntPrioritySet
(
INT_UART0
,
((
0x01
<<
5
)
|
0x01
));
//
IntPrioritySet(INT_UART0, ((0x01 << 5) | 0x01));
/* Enable Interrupt for UART channel */
/* Enable Interrupt for UART channel */
UARTIntRegister
(
uart
->
hw_base
,
UART0_IRQHandler
);
UARTIntRegister
(
uart
->
hw_base
,
UART0_IRQHandler
);
...
...
bsp/tm4c129x/libraries/startup/startup_ewarm.c
浏览文件 @
b21c35df
...
@@ -50,7 +50,10 @@ static void IntDefaultHandler(void);
...
@@ -50,7 +50,10 @@ static void IntDefaultHandler(void);
//
//
//*****************************************************************************
//*****************************************************************************
extern
void
__iar_program_start
(
void
);
extern
void
__iar_program_start
(
void
);
extern
void
PendSV_Handler
(
void
);
extern
void
SysTick_Handler
(
void
);
extern
void
UART0_IRQHandler
(
void
);
extern
void
HardFault_Handler
(
void
);
//*****************************************************************************
//*****************************************************************************
//
//
// Reserve space for the system stack.
// Reserve space for the system stack.
...
@@ -84,7 +87,7 @@ __root const uVectorEntry __vector_table[] @ ".intvec" =
...
@@ -84,7 +87,7 @@ __root const uVectorEntry __vector_table[] @ ".intvec" =
// The initial stack pointer
// The initial stack pointer
ResetISR
,
// The reset handler
ResetISR
,
// The reset handler
NmiSR
,
// The NMI handler
NmiSR
,
// The NMI handler
FaultISR
,
// The hard fault handler
HardFault_Handler
,
// The hard fault handler
IntDefaultHandler
,
// The MPU fault handler
IntDefaultHandler
,
// The MPU fault handler
IntDefaultHandler
,
// The bus fault handler
IntDefaultHandler
,
// The bus fault handler
IntDefaultHandler
,
// The usage fault handler
IntDefaultHandler
,
// The usage fault handler
...
@@ -95,14 +98,14 @@ __root const uVectorEntry __vector_table[] @ ".intvec" =
...
@@ -95,14 +98,14 @@ __root const uVectorEntry __vector_table[] @ ".intvec" =
IntDefaultHandler
,
// SVCall handler
IntDefaultHandler
,
// SVCall handler
IntDefaultHandler
,
// Debug monitor handler
IntDefaultHandler
,
// Debug monitor handler
0
,
// Reserved
0
,
// Reserved
IntDefaultHandler
,
// The PendSV handler
PendSV_Handler
,
//
IntDefaultHandler, // The PendSV handler
IntDefaultHandler
,
// The SysTick handler
SysTick_Handler
,
//
IntDefaultHandler, // The SysTick handler
IntDefaultHandler
,
// GPIO Port A
IntDefaultHandler
,
// GPIO Port A
IntDefaultHandler
,
// GPIO Port B
IntDefaultHandler
,
// GPIO Port B
IntDefaultHandler
,
// GPIO Port C
IntDefaultHandler
,
// GPIO Port C
IntDefaultHandler
,
// GPIO Port D
IntDefaultHandler
,
// GPIO Port D
IntDefaultHandler
,
// GPIO Port E
IntDefaultHandler
,
// GPIO Port E
IntDefaultHandler
,
// UART0 Rx and Tx
UART0_IRQHandler
,
//
IntDefaultHandler, // UART0 Rx and Tx
IntDefaultHandler
,
// UART1 Rx and Tx
IntDefaultHandler
,
// UART1 Rx and Tx
IntDefaultHandler
,
// SSI0 Rx and Tx
IntDefaultHandler
,
// SSI0 Rx and Tx
IntDefaultHandler
,
// I2C0 Master and Slave
IntDefaultHandler
,
// I2C0 Master and Slave
...
...
bsp/tm4c129x/libraries/startup/startup_gcc.c
浏览文件 @
b21c35df
...
@@ -45,6 +45,8 @@ extern int main(void);
...
@@ -45,6 +45,8 @@ extern int main(void);
extern
void
SysTick_Handler
(
void
);
extern
void
SysTick_Handler
(
void
);
extern
void
PendSV_Handler
(
void
);
extern
void
PendSV_Handler
(
void
);
extern
void
UART0_IRQHandler
(
void
);
extern
void
HardFault_Handler
(
void
);
//*****************************************************************************
//*****************************************************************************
//
//
// Reserve space for the system stack.
// Reserve space for the system stack.
...
@@ -65,7 +67,7 @@ void (* const g_pfnVectors[])(void) =
...
@@ -65,7 +67,7 @@ void (* const g_pfnVectors[])(void) =
// The initial stack pointer
// The initial stack pointer
ResetISR
,
// The reset handler
ResetISR
,
// The reset handler
NmiSR
,
// The NMI handler
NmiSR
,
// The NMI handler
FaultISR
,
// The hard fault handler
HardFault_Handler
,
// The hard fault handler
IntDefaultHandler
,
// The MPU fault handler
IntDefaultHandler
,
// The MPU fault handler
IntDefaultHandler
,
// The bus fault handler
IntDefaultHandler
,
// The bus fault handler
IntDefaultHandler
,
// The usage fault handler
IntDefaultHandler
,
// The usage fault handler
...
@@ -83,7 +85,7 @@ void (* const g_pfnVectors[])(void) =
...
@@ -83,7 +85,7 @@ void (* const g_pfnVectors[])(void) =
IntDefaultHandler
,
// GPIO Port C
IntDefaultHandler
,
// GPIO Port C
IntDefaultHandler
,
// GPIO Port D
IntDefaultHandler
,
// GPIO Port D
IntDefaultHandler
,
// GPIO Port E
IntDefaultHandler
,
// GPIO Port E
IntDefault
Handler
,
// UART0 Rx and Tx
UART0_IRQ
Handler
,
// UART0 Rx and Tx
IntDefaultHandler
,
// UART1 Rx and Tx
IntDefaultHandler
,
// UART1 Rx and Tx
IntDefaultHandler
,
// SSI0 Rx and Tx
IntDefaultHandler
,
// SSI0 Rx and Tx
IntDefaultHandler
,
// I2C0 Master and Slave
IntDefaultHandler
,
// I2C0 Master and Slave
...
...
bsp/tm4c129x/template.ewp
0 → 100644
浏览文件 @
b21c35df
此差异已折叠。
点击以展开。
bsp/tm4c129x/template.eww
0 → 100644
浏览文件 @
b21c35df
<?xml version="1.0" encoding="iso-8859-1"?>
<workspace>
<project>
<path>
$WS_DIR$\template.ewp
</path>
</project>
<batchBuild/>
</workspace>
bsp/tm4c129x/tm4c_rom.icf
浏览文件 @
b21c35df
...
@@ -76,3 +76,5 @@ place at start of SRAM { section VTABLE };
...
@@ -76,3 +76,5 @@ place at start of SRAM { section VTABLE };
// Place all read/write items into SRAM.
// Place all read/write items into SRAM.
//
//
place in SRAM { readwrite, block HEAP };
place in SRAM { readwrite, block HEAP };
keep { section FSymTab };
keep { section VSymTab };
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录