From c83c8b490a895986f01ec7e2b838ebf3688d49d0 Mon Sep 17 00:00:00 2001 From: thread-liu Date: Sat, 5 Sep 2020 09:20:06 +0800 Subject: [PATCH] [update] format code. --- .../STM32MP1xx/Source/Templates/iar/startup_stm32mp15xx.s | 2 +- .../stm32mp157a-st-discovery/board/ports/timer_sample.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bsp/stm32/libraries/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/iar/startup_stm32mp15xx.s b/bsp/stm32/libraries/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/iar/startup_stm32mp15xx.s index d76fe1db56..f189da16ec 100644 --- a/bsp/stm32/libraries/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/iar/startup_stm32mp15xx.s +++ b/bsp/stm32/libraries/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/iar/startup_stm32mp15xx.s @@ -225,7 +225,7 @@ __vector_table SECTION .text:CODE:NOROOT:REORDER(2) Reset_Handler - LDR R0, =SystemInit + LDR R0, =SystemInit BLX R0 LDR R0, =__iar_program_start BLX R0 diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/ports/timer_sample.c b/bsp/stm32/stm32mp157a-st-discovery/board/ports/timer_sample.c index e4acee8b0a..b387325a67 100644 --- a/bsp/stm32/stm32mp157a-st-discovery/board/ports/timer_sample.c +++ b/bsp/stm32/stm32mp157a-st-discovery/board/ports/timer_sample.c @@ -58,7 +58,7 @@ static int hwtimer_start(void) return RT_ERROR; } - /* 以读写方式打开设备 */ + /* Open the device in read/write mode */ ret = rt_device_open(hw_dev, RT_DEVICE_OFLAG_RDWR); if (ret != RT_EOK) { @@ -66,10 +66,10 @@ static int hwtimer_start(void) return ret; } - /* 设置超时回调函数 */ + /* Set the timeout callback function */ rt_device_set_rx_indicate(hw_dev, timeout_cb); - /* 设置模式为周期性定时器 */ + /* Set the mode to periodic timer */ mode = HWTIMER_MODE_PERIOD; ret = rt_device_control(hw_dev, HWTIMER_CTRL_MODE_SET, &mode); if (ret != RT_EOK)