diff options
| author | Leeto1970 <[email protected]> | 2026-07-07 10:34:04 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-07-14 19:55:12 +0800 |
| commit | d513da02db889d1925edd8a579e90bca382c85cc (patch) | |
| tree | bd0057e0e6a3b86524f2542823614e2edebf1ae0 /bsp/hc32/tests/test_clock_timer.c | |
| parent | f8a65e4092621917d53eaaca1191a7fa0f7f89bf (diff) | |
[HC32] Add HC32F4A2/HC32F467 BSP support
- Add chip macro for driver
- Modify 'IDLE_THREAD_STACK_SIZE' to 512
- Modify 'HWTIMER' to 'CLOCK_TIMER'
- Use 'clang-format' format driver and BSP code
- Fix SPI clock division configuration
Diffstat (limited to 'bsp/hc32/tests/test_clock_timer.c')
| -rw-r--r-- | bsp/hc32/tests/test_clock_timer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bsp/hc32/tests/test_clock_timer.c b/bsp/hc32/tests/test_clock_timer.c index b5536b9bed..649bf35a4f 100644 --- a/bsp/hc32/tests/test_clock_timer.c +++ b/bsp/hc32/tests/test_clock_timer.c @@ -151,7 +151,8 @@ static int clock_timer_sample(int argc, char *argv[]) } /* 确保oneshot模式cb函数执行一次后才关闭定时器 */ - while (cb_run == RT_FALSE); + while (cb_run == RT_FALSE) + ; cb_run = RT_FALSE; /* close */ @@ -160,5 +161,5 @@ static int clock_timer_sample(int argc, char *argv[]) return ret; } /* 导出到 msh 命令列表中 */ -MSH_CMD_EXPORT(clock_timer_sample, clock_timer sample: devname [oneshot | period] timeout); +MSH_CMD_EXPORT(clock_timer_sample, clock_timer sample : devname[oneshot | period] timeout); #endif |
