diff options
| author | 张世争 <[email protected]> | 2020-11-20 08:49:51 +0800 |
|---|---|---|
| committer | 张世争 <[email protected]> | 2020-11-20 08:49:51 +0800 |
| commit | 355f8dd95cddcf784eb60bfea0a8d6ebf130fdf3 (patch) | |
| tree | a901cfdc41cc8dc3df0ebd3c96e97725051f679f /libcpu/arm/s3c24x0/cpu.c | |
| parent | 9dc0bbb814dff797eabb1cbcc133410c75471cd0 (diff) | |
[libcpu][update]重启与关机函数:rt_hw_cpu_shutdown、rt_hw_cpu_reset,补充WEAK属性
Diffstat (limited to 'libcpu/arm/s3c24x0/cpu.c')
| -rw-r--r-- | libcpu/arm/s3c24x0/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/s3c24x0/cpu.c b/libcpu/arm/s3c24x0/cpu.c index 4d3bf3c1ab..2adf526a5c 100644 --- a/libcpu/arm/s3c24x0/cpu.c +++ b/libcpu/arm/s3c24x0/cpu.c @@ -148,7 +148,7 @@ rt_base_t rt_hw_cpu_dcache_status() * reset cpu by dog's time-out * */ -void rt_hw_cpu_reset() +RT_WEAK void rt_hw_cpu_reset() { /* Disable all interrupt except the WDT */ INTMSK = (~((rt_uint32_t)1 << INTWDT)); @@ -171,7 +171,7 @@ void rt_hw_cpu_reset() * shutdown CPU * */ -void rt_hw_cpu_shutdown() +RT_WEAK void rt_hw_cpu_shutdown() { rt_uint32_t level; rt_kprintf("shutdown...\n"); |
