-
大小: 30.01MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-07-02
- 语言: 其他
- 标签: lwip+ucosIII
资源简介
keil下的lwip+ucosIII+stm32下的完整项目代码,实现了LWIP下的API接口函数编程。
代码片段和文件信息
#include
static OS_TCB AppTaskStartTCB;
static OS_TCB AppMyTask;
static CPU_STK AppTaskStartStk[APP_TASK_START_STK_SIZE];
static CPU_STK AppMyTaskStk[APP_TASK_START_STK_SIZE];
static void AppTaskStart (void *p_arg);
static void MyAPPTask (void *p_arg);
#define APPMyTask() OSTaskCreate((OS_TCB *)&AppMyTask \
(CPU_CHAR *)“ MyTask “ \
(OS_TASK_PTR )MyAPPTask \
(void *)0 \
(OS_PRIO )APP_MyTASK_PRIO \
(CPU_STK *)&AppMyTaskStk[0] \
(CPU_STK )(APP_MyTASK_STK_SIZE / 10) \
(CPU_STK_SIZE) APP_MyTASK_STK_SIZE \
(OS_MSG_QTY )10 \
(OS_TICK ) 0 \
(void *) 0 \
(OS_OPT )(OS_OPT_TASK_STK_CHK | OS_OPT_TASK_STK_CLR) \
(OS_ERR *)&err)
int main (void)
{
OS_ERR err;
/* Setup STM32 system (clock PLL and Flash configuration) */
BSP_IntDisAll(); /* Disable all interrupts. */
OSInit(&err); /* Init uC/OS-III. */
OSTaskCreate((OS_TCB *)&AppTaskStartTCB /* Create the start task */
(CPU_CHAR *)“App Task Start“
(OS_TASK_PTR)AppTaskStart
(void *)0
(OS_PRIO )APP_TASK_START_PRIO
(CPU_STK *)&AppTaskStartStk[0]
(CPU_STK )(APP_TASK_START_STK_SIZE / 10)
(CPU_STK_SIZE)APP_TASK_START_STK_SIZE
(OS_MSG_QTY )0
(OS_TICK )0
(void *)0
(OS_OPT )(OS_OPT_TASK_STK_CHK | OS_OPT_TASK_STK_CLR)
(OS_ERR *)&err);
OSStart(&err); /* Start multitasking (i.e. give control to uC/OS-III). */
return (0);
}
/*--------------- LCD Messages ---------------*/
#include “stm32_eval.h“
#include “stm322xg_eval_lcd.h“
#define MESSAGE1 “ STM32F2x7 “
#define MESSAGE2 “ Lwip Server Test “
#define MESSAGE3 “ uCOS-III “
#define MESSAGE4 “ Michael Vysotsky “
#define MESSAGE5 “ 2014-04-19 “
#define USE_LCD
static void AppTaskStart (void *p_arg)
{
CPU_INT32U cpu_clk_freq;
CPU_INT32U cnts;
OS_ERR err;
(void)p_arg;
BSP_Init(); /* Initialize BSP functions */
CPU_Init(); /* Initialize the uC/CPU services
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-04-28 17:23 LwipPrj\
目录 0 2014-04-17 13:18 LwipPrj\APP\
目录 0 2014-04-23 11:50 LwipPrj\APP\inc\
文件 5061 2014-04-18 10:24 LwipPrj\APP\inc\app_cfg.h
文件 1962 2014-04-18 10:16 LwipPrj\APP\inc\includes.h
文件 3057 2012-07-25 10:20 LwipPrj\APP\inc\os_app_hooks.h
文件 2198 2012-04-13 23:38 LwipPrj\APP\inc\stm32f2xx_it.h
目录 0 2014-04-23 13:01 LwipPrj\APP\src\
文件 4565 2014-04-23 11:30 LwipPrj\APP\src\app.c
文件 4601 2014-04-18 10:42 LwipPrj\APP\src\app.c.bak
文件 7325 2014-04-18 09:49 LwipPrj\APP\src\app_vect.c
文件 8770 2012-07-25 10:20 LwipPrj\APP\src\os_app_hooks.c
文件 4290 2014-04-23 13:01 LwipPrj\APP\src\stm32f2xx_it.c
目录 0 2014-04-16 19:04 LwipPrj\BSP\
目录 0 2014-04-17 16:05 LwipPrj\BSP\STM32\
目录 0 2014-04-17 13:23 LwipPrj\BSP\STM32\CMSIS\
目录 0 2014-04-17 16:09 LwipPrj\BSP\STM32\CMSIS\Device_Support\
文件 20625 2013-01-23 14:16 LwipPrj\BSP\STM32\CMSIS\Device_Support\cstartup.s
文件 521593 2012-09-17 08:33 LwipPrj\BSP\STM32\CMSIS\Device_Support\stm32f2xx.h
文件 3620 2012-10-09 08:41 LwipPrj\BSP\STM32\CMSIS\Device_Support\stm32f2xx_conf.h
文件 20783 2012-09-17 08:33 LwipPrj\BSP\STM32\CMSIS\Device_Support\system_stm32f2xx.c
文件 2092 2012-09-17 08:33 LwipPrj\BSP\STM32\CMSIS\Device_Support\system_stm32f2xx.h
文件 73001 2012-09-17 08:33 LwipPrj\BSP\STM32\CMSIS\core_cm3.h
文件 17952 2012-09-17 08:33 LwipPrj\BSP\STM32\CMSIS\core_cmFunc.h
文件 16437 2012-09-17 08:33 LwipPrj\BSP\STM32\CMSIS\core_cmInstr.h
目录 0 2014-04-16 19:00 LwipPrj\BSP\STM32\ETH_Driver\
目录 0 2014-04-16 19:00 LwipPrj\BSP\STM32\ETH_Driver\inc\
文件 100064 2011-06-10 14:09 LwipPrj\BSP\STM32\ETH_Driver\inc\stm32f2x7_eth.h
文件 3890 2011-06-10 14:09 LwipPrj\BSP\STM32\ETH_Driver\inc\stm32f2x7_eth_conf.h
文件 4018 2011-06-10 14:09 LwipPrj\BSP\STM32\ETH_Driver\inc\stm32f2x7_eth_conf_template.h
目录 0 2014-04-16 19:00 LwipPrj\BSP\STM32\ETH_Driver\src\
............此处省略821个文件信息
评论
共有 条评论