Chapter 13
13-2 HANDLING DEBUG EVENTS
13-2-1 DEBUG EVENT POOL
A pool is used to keep track of debugging events. This pool is made up of debug event
structures where the size of the pool is specified by USBD_CFG_DBG_TRACE_NBR_EVENTS in
the application configuration. Within the core, each time a new debug standard request is
received, the message’s details will be set into a debug event structure and queued into the
pool. Once the debug event is properly queued, a ready signal is invoked to notify the
13
debug task handler that an event is ready to be processed.
13-2-2 DEBUG TASK
An OS-dependent task is used to process debug events. The debug task handler simply
pends until an event ready signal is received and obtains a pointer to the first debug event
structure from the pool. The details of the debug event structure is then formatted and
outputted via the application trace function. At the end of the output, the debug event
structure is then subsequently freed and the debug task will pend and process the next
debug event structure ready. Refer to section 4-2-3 “Processing Debug Events” on page 63
for details on processing debug events.
13-2-3 DEBUG MACROS
Within the core, several macros are created to set debug messages. These macros are
defined in usbd_core.h and make use of the core functions USBD_Dbg() and
USBD_DbgArg() that will set up a debug event structure and put the event into the debug
event pool. These macros are defined in Listing 13-3.
234
相关PDF资料
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
AD8045ARD-EBZ BOARD EVAL FOR AD8045ARD
相关代理商/技术参数
AD-UCUSB-HCCDC-SPL 制造商:Analog Devices 功能描述:?C/USB HC CDC FOR CCES SINGLE PROD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSB-HCMSC-SPL 制造商:Analog Devices 功能描述:?C/USB HC MSC FOR CCES SINGLE PROD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MCDC-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH CDC SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MHID-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH HID SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MMSC-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH MSC SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-SPRD 功能描述:PRD LIC UCUSB DEV CORE CCES SGL 制造商:analog devices inc. 系列:CrossCore? Embedded Studio 零件状态:在售 类型:- 应用:- 版本:- 许可长度:- 许可 - 用户明细:- 操作系统:- 配套使用产品/相关产品:Blackfin? 处理器 媒体分发类型:- 标准包装:1
ADUM1100 制造商:AD 制造商全称:Analog Devices 功能描述:iCoupler Digital Isolator
ADUM1100AR 功能描述:IC DIGITAL ISOLATOR 1CH 8-SOIC RoHS:否 类别:隔离器 >> 数字隔离器 系列:iCoupler® 产品培训模块:IsoLoop® Isolator 标准包装:50 系列:IsoLoop® 输入 - 1 侧/2 侧:5/0 通道数:5 电源电压:3 V ~ 5.5 V 电压 - 隔离:2500Vrms 数据速率:110Mbps 传输延迟:12ns 输出类型:CMOS 封装/外壳:16-SOIC(0.154",3.90mm 宽) 供应商设备封装:16-SOIC N 包装:管件 工作温度:-40°C ~ 85°C 其它名称:390-1053-5