Hi,
Those definitions are part of the USB stack:
DEV_ARCHITECTURE_STRUCT is used only when COMPOSITE_DEV is used in the stack but the Kinetis Bootloader (KBOOT) does not support composite device, you can see it in the usb_(class name).c file (example usb_hid.c) code:
#ifdef COMPOSITE_DEV
DEV_ARCHITECTURE_STRUCT_PTR dev_arc_ptr; //HERE
CLASS_ARC_STRUCT_PTR dev_class_ptr;
dev_arc_ptr = (DEV_ARCHITECTURE_STRUCT *)USB_Desc_Get_Class_Architecture(controller_ID);
It is the same with the GETSTATUS_DATA_SIZE and GETSTATE_DATA_SIZE you can find them in the usb_dfu.c file inside the \FSL_Kinetis_Bootloader_1_1_0\src\usb_device\class:
static uint_8 USB_Class_DFU_Getstatus (
uint_8 controller_ID, /* [IN] Controller ID */
uint_8 interface, /* [IN] Interface */
uint_8_ptr *data, /* [OUT] Pointer to Data */
USB_PACKET_SIZE *size /* [OUT] Pointer to Size of Data */
)
{
UNUSED(controller_ID)
/* if interface valid */
if (interface < USB_MAX_SUPPORTED_INTERFACES)
{
/* get status data*/
*size = GETSTATUS_DATA_SIZE; //HERE
*data = g_status;
return USB_OK;
}
return USBERR_INVALID_REQ_TYPE;
}
This macros are not used because only USB HID is supported by the KBOOT but are in the files because are part of the stack.
Refer to the Kinetis Bootloader 1.1.0 Reference Manual.pdf file included in the KBOOT documentation the chapter 9 has a lot of hints and procedure of porting the KBOOT to other devices.
Hope this information can help you
Best Regards,
Adrian Sanchez Cano
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------