diff options
| author | Yunjie Gu <[email protected]> | 2022-08-20 18:16:41 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-20 13:16:41 -0400 |
| commit | b43f0e72056ccead87e4846ba966c649bc9f4947 (patch) | |
| tree | bb9631b4dc719db35449f0798bb049ef2109a5e8 /src | |
| parent | 5b8a3678f09a2b87448d530fe72b7ea85fe7311e (diff) | |
[bsp][tms320f28379d] Fix compile ti (#6254)
* compile_ok
Issues fixed:
(1) update .config: select FINSH_USING_SYMTAB
(2) add rt_size_t in rtconfig_project.h
(3) fix finsh problems of using sym table
(4) update .project to include ipc source codes.
Todo list:
(1) automate the build source selection of ccs and reconcile it with scons
* change compiler
* msh can run now
the key step is to swap the order of rt_interrupt_nest -- and RT_OBJECT_HOOK_CALL(rt_interrupt_leave_hook,()) in irq.c. This is an improvised solution and an issue has been raised.
* Update 2837x_FLASH_lnk_cpu1.cmd
The original one is also fine. Just to make it more rigorous since FSymTab is in data section.
* update readme.md
Complier selection and maintainer update.
Co-authored-by: YuQi <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/irq.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2021, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -11,6 +11,7 @@ * 2018-11-22 Jesven rt_interrupt_get_nest function add disable irq * 2021-08-15 Supperthomas fix the comment * 2022-01-07 Gabriel Moving __on_rt_xxxxx_hook to irq.c + * 2022-07-04 Yunjie fix RT_DEBUG_LOG */ #include <rthw.h> @@ -87,7 +88,7 @@ void rt_interrupt_enter(void) rt_hw_interrupt_enable(level); RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq current nest:%d\n", - rt_interrupt_nest)); + (rt_int32_t)rt_interrupt_nest)); } RTM_EXPORT(rt_interrupt_enter); @@ -104,7 +105,7 @@ void rt_interrupt_leave(void) rt_base_t level; RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq is going to leave, irq current nest:%d\n", - rt_interrupt_nest)); + (rt_int32_t)rt_interrupt_nest)); level = rt_hw_interrupt_disable(); RT_OBJECT_HOOK_CALL(rt_interrupt_leave_hook,()); |
