Getting Started with μC/OS-III
L3-3(5)
BSP_LED_Off() is a function that will turn off all LEDs because the function is
written so that a zero argument means all the LEDs.
L3-3(6)
Most μC/OS-III tasks will need to be written as an infinite loop.
L3-3(7)
This BSP function toggles the state of the specified LED. Again, a zero indicates
that all the LEDs should be toggled on the evaluation board. Simply change the
zero to 1 and this will cause LED #1 to toggle. Exactly which LED is LED #1?
That depends on the BSP developer. Specifically, encapsulate access to
LEDs through such functions as
BSP_LED_On() ,
BSP_LED_Off()
and
BSP_LED_Toggle() . Also, we prefer to assign LEDs logical values (1, 2, 3, etc.)
instead of specifying which port and which bit on each port.
L3-3(8)
Finally, each task in the application must call one of the μC/OS-III functions
that will cause the task to “wait for an event.” The task can wait for time to
expire (by calling OSTimeDly() , or OSTimeDlyHMSM() ), or wait for a signal or a
message from an ISR or another task. Chapter 11, “Time Management” on
page 183 provides additional information about time delays.
59
相关PDF资料
AD-UCUSBD-SPRD PRD LIC UCUSB DEV CORE CCES SGL
AD637-EVALZ BOARD EVALUATION FOR AD637
AD736-EVALZ BOARD EVALUATION FOR AD736
AD737-EVALZ BOARD EVALUATION FOR AD737
AD8007AKS-EBZ BOARD EVAL FOR AD8007AKS
AD8018ARU-EVAL BOARD EVAL FOR AD8018
AD8034ART-EBZ BOARD EVAL FOR AD8034ART
AD8040AR-EBZ BOARD EVAL FOR AD8040AR
相关代理商/技术参数
ADUCOSC100 制造商:Analog Devices 功能描述:ADC - Rail/Tube
ADUCOSC100-REEL 功能描述:DAC MICROCONVERTER DUAL TSSOP 制造商:analog devices inc. 系列:* 零件状态:上次购买时间 标准包装:1
ADUCOSC100-REEL7 功能描述:DAC MICROCONVERTER DUAL TSSOP 制造商:analog devices inc. 系列:* 零件状态:上次购买时间 标准包装:1
ADUCOSCZ100 制造商:Analog Devices 功能描述:
ADUCOSCZ100-REEL7 制造商:Analog Devices 功能描述:ANAADUCOSCZ100-REEL7 12 BIT ADC WITH EMB
ADuC-P7026 功能描述:开发板和工具包 - ARM PROTOTYPE BRD FOR ADUC7026 ARM7 RoHS:否 制造商:Arduino 产品:Development Boards 工具用于评估:ATSAM3X8EA-AU 核心:ARM Cortex M3 接口类型:DAC, ICSP, JTAG, UART, USB 工作电源电压:3.3 V
ADUCRF101 制造商:Analog Devices 功能描述:PRECISION ANALOG MICRCONTROLLER - Tape and Reel
ADUCRF101BCPZ128 制造商:Analog Devices 功能描述:PRECISION ANALOG MICROCONTROLLER WITH RF TRANSCEIVER, ARM CO - Trays