From b43f0e72056ccead87e4846ba966c649bc9f4947 Mon Sep 17 00:00:00 2001 From: Yunjie Gu Date: Sat, 20 Aug 2022 18:16:41 +0100 Subject: [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 --- src/irq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/irq.c b/src/irq.c index bc604718b2..c417f253a6 100644 --- a/src/irq.c +++ b/src/irq.c @@ -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 @@ -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,()); -- cgit v1.3.1