diff options
| author | xuzhuoyi <[email protected]> | 2018-09-03 00:03:06 +0800 |
|---|---|---|
| committer | xuzhuoyi <[email protected]> | 2018-09-03 00:03:06 +0800 |
| commit | 697a4495a6b40e01ea856cf1e3dc90bde2e368c7 (patch) | |
| tree | 150b81af8a6a7d324719c8e2a7f36d9102919428 /bsp | |
| parent | d85981a715669d0f58119133b5983469bc88db73 (diff) | |
[bsp][tms320f28379d] Add support for upward-growing stack
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/tms320f28379d/drivers/board.c | 3 | ||||
| -rw-r--r-- | bsp/tms320f28379d/rtconfig.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bsp/tms320f28379d/drivers/board.c b/bsp/tms320f28379d/drivers/board.c index a019e24cd6..30a33f91eb 100644 --- a/bsp/tms320f28379d/drivers/board.c +++ b/bsp/tms320f28379d/drivers/board.c @@ -16,6 +16,8 @@ #include "board.h" #include "F28x_Project.h" +extern interrupt void RTOSINT_Handler(); + /** * This is the timer interrupt service routine. @@ -51,6 +53,7 @@ void rt_hw_board_init() EALLOW; // This is needed to write to EALLOW protected registers PieVectTable.TIMER2_INT = &cpu_timer2_isr; + PieVectTable.RTOS_INT = &RTOSINT_Handler; EDIS; InitCpuTimers(); diff --git a/bsp/tms320f28379d/rtconfig.h b/bsp/tms320f28379d/rtconfig.h index 73de6650e4..5fafc1da5e 100644 --- a/bsp/tms320f28379d/rtconfig.h +++ b/bsp/tms320f28379d/rtconfig.h @@ -15,6 +15,7 @@ #define RT_USING_HOOK #define RT_IDEL_HOOK_LIST_SIZE 4 #define IDLE_THREAD_STACK_SIZE 1024 +#define RT_STACK_UPWARD_GROW #define RT_DEBUG /* Inter-Thread communication */ @@ -37,9 +38,6 @@ //#define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart2" -#define ARCH_ARM -#define ARCH_ARM_CORTEX_M -#define ARCH_ARM_CORTEX_M4 /* RT-Thread Components */ |
