Clock_home5_UCOSIII - 副本

所属分类:uCOS/RTOS
开发工具:C51
文件大小:10839KB
下载次数:5
上传日期:2018-02-03 10:03:56
上 传 者no name
说明:  点阵挂钟 跑的UCOSIII 通过ESP8266实现从网上获取天气预报、联网对时的功能
(Lattice clock run UCOSIII to achieve access to the weather forecast, on the network from the Internet via ESP8266)

文件列表:
Clock_home5_UCOSIII - 副本 (0, 2017-12-16)
Clock_home5_UCOSIII - 副本\CORE (0, 2017-12-16)
Clock_home5_UCOSIII - 副本\CORE\core_cm3.c (17273, 2010-06-07)
Clock_home5_UCOSIII - 副本\CORE\core_cm3.h (85714, 2011-02-09)
Clock_home5_UCOSIII - 副本\CORE\startup_stm32f10x_hd.s (15737, 2017-08-30)
Clock_home5_UCOSIII - 副本\CORE\startup_stm32f10x_md.s (12765, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB (0, 2017-12-16)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib (0, 2017-12-16)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc (0, 2017-12-16)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\misc.h (8982, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_adc.h (21690, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_bkp.h (7555, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_can.h (27559, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_cec.h (6573, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_crc.h (2162, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_dac.h (15233, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_dbgmcu.h (3818, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_dma.h (20754, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_exti.h (6824, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_flash.h (25445, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_fsmc.h (27016, 2012-08-25)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_gpio.h (20175, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_i2c.h (30029, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_iwdg.h (3828, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_pwr.h (4383, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_rcc.h (30452, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_rtc.h (3857, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_sdio.h (21863, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_spi.h (17725, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_tim.h (52427, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_usart.h (16548, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\inc\stm32f10x_wwdg.h (2966, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src (0, 2017-12-16)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\misc.c (7046, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\stm32f10x_adc.c (47201, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\stm32f10x_bkp.c (8463, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\stm32f10x_can.c (45103, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\stm32f10x_cec.c (11656, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\stm32f10x_crc.c (3347, 2011-03-10)
Clock_home5_UCOSIII - 副本\FWLIB\STM32F10x_FWLib\src\stm32f10x_dac.c (19087, 2012-08-26)
... ...

例8-1 UCOSIII软件定时器实验 实验内容: 本实验设计了2个任务,任务A用于创建两个定时器:定时器1和定时器2,任务A还创建了另外一个任务B。其中定时器1 为周期定时器,初始延时为200ms,以后的定时器周期为1000ms,定时器2位单次定时器,延时为2000ms。 任务B作为按键检测任务,当KEY_UP键按下的时候,打开定时器1;当KEY0按下的时候打开定时器2;当KEY1按下的时候,同时关闭定时器1和2;任务B还用来控制LED0,使其闪烁,提示系统正在运行。 定时器1定时完成以后调用回调函数刷新其工作区域的背景,并且在LCD上显示定时器1运行的次数。定时器2定时完成后也调用其回调函数来刷新其工作区域的背景,并且显示运行次数,由于定时器2是单次定时器,我们通过串口打印来观察单次定时器的运行情况。 注意: 1、 UCOSIII中以下优先级用户程序不能使用,ALIENTEK将这些优先级分配给了UCOSIII的5个系统内部任务。 优先级0:中断服务服务管理任务 OS_IntQTask() 优先级1:时钟节拍任务 OS_TickTask() 优先级2:定时任务 OS_TmrTask() 优先级OS_CFG_PRIO_MAX-2:统计任务 OS_StatTask() 优先级OS_CFG_PRIO_MAX-1:空闲任务 OS_IdleTask() 2、 由于定时器2为单次定时器,并且定时器2的dly为2000ms,因此当我们按下KEY0的时候,定时器2的回调函数并不会立即执行,而是要等到定时结束,也就是要等待2000ms才会看到回调函数的执行效果!!!! 正点原子@ALIENTEK 2014-11-26 广州市星翼电子科技有限公司 联系电话(传真):020-38271790 购买:http://shop62103354.taobao.com http://shop62057469.taobao.com 技术支持论坛:www.openedv.com

近期下载者

相关文件


收藏者