提交 a599ab3b 编写于 作者: wuyangyong's avatar wuyangyong

fix the led_examples_project

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@127 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 f5bcb867
......@@ -57,8 +57,16 @@ void rt_hw_led_off(rt_uint32_t n)
#ifdef RT_USING_FINSH
#include <finsh.h>
static rt_uint8_t led_inited = 0;
void led(rt_uint32_t led, rt_uint32_t value)
{
/* init led configuration if it's not inited. */
if (!led_inited)
{
rt_hw_led_init();
led_inited = 1;
}
if ( led == 0 )
{
/* set led status */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册