资源简介
rtthread操作系统 例程 其中 有LED、filesystem、usart等
代码片段和文件信息
/*
* File : app.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://openlab.rt-thread.com/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2009-01-05 Bernard the first version
*/
/**
* @addtogroup LM3S
*/
/*@{*/
#include
#include
#ifdef RT_USING_DFS
/* dfs init */
#include
/* dfs filesystem:ELM FatFs filesystem init */
#include
/* dfs Filesystem APIs */
#include
#endif
#ifdef RT_USING_LWIP
#include
#include
#endif
/* thread phase init */
void rt_init_thread_entry(void *parameter)
{
/* Filesystem Initialization */
#ifdef RT_USING_DFS
{
/* init the device filesystem */
dfs_init();
#ifdef RT_USING_DFS_ELMFAT
/* init the elm chan FatFs filesystam*/
elm_init();
/* mount sd card fat partition 1 as root directory */
if (dfs_mount(“sd0“ “/“ “elm“ 0 0) == 0)
{
rt_kprintf(“File System initialized!\n“);
}
else
rt_kprintf(“File System initialzation failed!\n“);
#endif
}
#endif
/* LwIP Initialization */
#ifdef RT_USING_LWIP
{
extern void lwip_sys_init(void);
/* init lwip system */
lwip_sys_init();
rt_kprintf(“TCP/IP initialized!\n“);
}
#endif
}
int rt_application_init()
{
rt_thread_t init_thread;
init_thread = rt_thread_create(“init“
rt_init_thread_entry RT_NULL
1024 21 20);
rt_thread_startup(init_thread);
return 0;
}
/*@}*/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\
文件 578 2010-04-01 06:57 RT-Thread-0.3.1\AUTHORS
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\bsp\
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\bsp\lm3s\
文件 1688 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\application.c
文件 2820 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\board.c
文件 967 2010-09-28 07:23 RT-Thread-0.3.1\bsp\lm3s\board.h
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\bsp\lm3s\Libraries\
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\
文件 35694 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\adc.c
文件 7771 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\adc.h
文件 72896 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\can.c
文件 14730 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\can.h
文件 15635 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\comp.c
文件 7314 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\comp.h
文件 5410 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\cpu.c
文件 2332 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\cpu.h
文件 2261 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\cr_project.xm
文件 2520 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\debug.h
文件 22130 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\driverlib.ewp
文件 1978 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\driverlib.Opt
文件 3442 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\driverlib.sgxx
文件 3212 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\driverlib.Uv2
文件 35771 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\epi.c
文件 10827 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\epi.h
文件 45550 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\ethernet.c
文件 7662 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\ethernet.h
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\ewarm\
文件 28532 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\flash.c
文件 3741 2010-04-01 06:49 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\flash.h
目录 0 2010-09-29 13:34 RT-Thread-0.3.1\bsp\lm3s\Libraries\driverlib\gcc\
............此处省略1502个文件信息
- 上一篇:filedisk源码分析
- 下一篇:fiddler基础教程
评论
共有 条评论