参数资料
型号: DM240415
厂商: Microchip Technology
文件页数: 20/63页
文件大小: 0K
描述: ACCESSORY DEVELOPMENT START KIT
设计资源: PIC24F ADK Schematic
特色产品: DM240415 Android? Accessory Starter Kit
标准包装: 1
主要目的: 参考设计,平板式
嵌入式: 是,MCU,16 位
已用 IC / 零件: PIC24F
主要属性: 机器人 OS,附件开发平台,兼容 Arduino
次要属性: 免版税,免软件库许可费
已供物品: 电路板,适配器,调试程序,电源,软件
Microchip's Accessory Framework for Android(tm)
15
4.2.1.2 HardwareProfile.h
HardwareProfile.h provides configuration information to the source version of the library. This tells the library and demo code
information about the hardware that it needs to know for configuration, such as the system clock speed, which pins are being
used for certain stack or demo features, etc.
When moving this library to your own hardware platform, you will need to create your own HardwareProfile.h file that
specifies the requirements of your board.
4.2.1.3 usb_config.h
usb_config.h is used to configure the build options of the source version of this library. At the moment this is also required in
the pre-compiled format as well.
When using with the pre-compiled format, please do not modify this file as it must match exactly how the library
was built.
For users developing with the source version of the library, this file provides several configuration options for customizing the
USB stack. There are a few options that are required.
The USB_SUPPORT_HOST option must be enabled.
The USB_ENABLE_TRANSFER_EVENT option must be enabled.
The USB_HOST_APP_DATA_EVENT_HANDLER must be defined and the function that is referenced must be implemented.
The USB_ENABLE_1MS_EVENT must be enabled.
see page 27)() function should be added to the USBTasks() function call or it should be
called periodically from the user application.
#define USBTasks()
{
USBHostTasks();
AndroidTasks();
}
The USB_SUPPORT_BULK_TRANSFERS should be defined.
For use with PIC32, the USB_PING_PONG_MODE option must be set to USB_PING_PONG__FULL_PING_PONG. This is
also recommended for PIC24F but not required.
#define USB_PING_PONG_MODE
USB_PING_PONG__FULL_PING_PONG
If you modify the TPL in the usb_config.c (
see page 16) file (see section usb_config.c (
see page 16) for more details),
then the NUM_TPL_ENTRIES and NUM_CLIENT_DRIVER_ENTRIES entries in the usb_config.h file should be updated to
match.
Below is a complete example of a usb_config.h file for an Android accessory demo:
#define USB_SUPPORT_HOST
#define USB_PING_PONG_MODE
USB_PING_PONG__FULL_PING_PONG
4
#define NUM_TPL_ENTRIES 2
#define NUM_CLIENT_DRIVER_ENTRIES 1
#define USB_ENABLE_TRANSFER_EVENT
#define USB_HOST_APP_DATA_EVENT_HANDLER USB_ApplicationDataEventHandler
#define USB_ENABLE_1MS_EVENT
#define USB_MAX_GENERIC_DEVICES 1
#define USB_NUM_CONTROL_NAKS 20
#define USB_SUPPORT_INTERRUPT_TRANSFERS
15
相关PDF资料
PDF描述
DM300004-2 BOARD DEMO DSPICDEM.NET 2
DM300014 BOARD DEMO DSPICDEM 1.1 GEN PURP
DM300016 BOARD DEMO DSPICDEM STARTER
DM300017 BOARD DEMO DSPICDEM STARTER
DM300020 BOARD DEV DSPICDEM MC1 MOTORCTRL
相关代理商/技术参数
参数描述
DM2410-0AL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0BL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0CL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0DL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic
DM2410-0GL1 制造商:未知厂家 制造商全称:未知厂家 功能描述:Optoelectronic