Browse Source

[update] format code.

thread-liu 4 years ago
parent
commit
c83c8b490a

+ 1 - 1
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 

+ 3 - 3
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)