diff options
| author | Man, Jianting (Meco) <[email protected]> | 2022-12-11 13:12:03 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-11 13:12:03 -0500 |
| commit | 99bdf978d7fe4ec18ed50a639e15b254825c871b (patch) | |
| tree | 51ffb6f5fae10f2ce9a6baf4b861c025b8056fb6 /libcpu/arm/lpc214x | |
| parent | a4b8762d8584b02a9b1f1c675a97ecaa105144be (diff) | |
[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
Diffstat (limited to 'libcpu/arm/lpc214x')
| -rw-r--r-- | libcpu/arm/lpc214x/cpuport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/lpc214x/cpuport.c b/libcpu/arm/lpc214x/cpuport.c index a1f594dcb9..de5a900a67 100644 --- a/libcpu/arm/lpc214x/cpuport.c +++ b/libcpu/arm/lpc214x/cpuport.c @@ -163,7 +163,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, * this function will reset CPU * */ -RT_WEAK void rt_hw_cpu_reset(void) +rt_weak void rt_hw_cpu_reset(void) { } @@ -171,7 +171,7 @@ RT_WEAK void rt_hw_cpu_reset(void) * this function will shutdown CPU * */ -RT_WEAK void rt_hw_cpu_shutdown() +rt_weak void rt_hw_cpu_shutdown() { rt_kprintf("shutdown...\n"); |
