b3c7bc964b
1、加入Kconfig以支持图形化菜单配置 2、编译脚本中添加动态模块编译参数 3、开启自动初始化机制支持 4、重构串口驱动以解决开启posix支持后终端无响应问题 5、解决dm9000网卡驱动link up问题 6、添加mnt.c文件用来挂载文件系统
29 lines
485 B
C
29 lines
485 B
C
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <rtthread.h>
|
|
|
|
#include "led.h"
|
|
|
|
int main(void)
|
|
{
|
|
printf("hello rt-thread\n");
|
|
|
|
while (1)
|
|
{
|
|
/* light on leds for one second */
|
|
rt_hw_led_on(LED2|LED3);
|
|
rt_hw_led_off(LED1|LED4);
|
|
rt_thread_delay(100);
|
|
|
|
/* light off leds for one second */
|
|
rt_hw_led_off(LED2|LED3);
|
|
rt_hw_led_on(LED1|LED4);
|
|
rt_thread_delay(100);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
|