Getting Started with μC/OS-III
L3-5(1)
Creating a mutex is simply a matter of calling OSMutexCreate() . Specify the
address of the OS_MUTEX object that will be used for the mutex. Chapter 13,
“Resource Management” on page 209 provides additional information about
mutual exclusion semaphores.
You can assign an ASCII name to the mutex, which is useful when debugging.
L3-5(2)
Create the message queue by calling OSQCreate() and specifying the address
of the OS_Q object. Chapter 15, “Message Passing” on page 289 provides
additional information about message queues.
Assign an ASCII name to the message queue.
Specify how many messages the message queue is allowed to receive. This
value must be greater than zero. If the sender sends messages faster than they
can be consumed by the receiving task, messages will be lost. This can be
corrected by either increasing the size of the message queue, or increasing the
priority of the receiving task.
L3-5(3)
The first application task is created.
Listing 3-6 shows how to create other tasks once multitasking as started.
63
相关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