[rtdef] use lower-case to define attributes (#6728)

* [rtdef] rename RT_WEAK attribute as rt_weak

* [rtdef] rename RT_USED attribute as rt_used

* [rtdef] rename RT_SECTION attribute as rt_section

* [rtdef] rename ALIGN attribute as rt_align

* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
This commit is contained in:
Man, Jianting (Meco)
2022-12-11 13:12:03 -05:00
committed by GitHub
parent a4b8762d85
commit 99bdf978d7
178 changed files with 472 additions and 462 deletions
+2 -2
View File
@@ -431,7 +431,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
/**
* shutdown CPU
*/
RT_WEAK void rt_hw_cpu_shutdown(void)
rt_weak void rt_hw_cpu_shutdown(void)
{
rt_kprintf("shutdown...\n");
@@ -441,7 +441,7 @@ RT_WEAK void rt_hw_cpu_shutdown(void)
/**
* reset CPU
*/
RT_WEAK void rt_hw_cpu_reset(void)
rt_weak void rt_hw_cpu_reset(void)
{
SCB_AIRCR = SCB_RESET_VALUE;
}