提交 c83c8b49 编写于 作者: T thread-liu

[update] format code.

上级 8662bb70
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册