Codes:
hal_usb_dev_req_resp_t device_req_cb(hal_usb_device_req* req, uint8_t** data_ptr, uint8_t* size) large reentrant
{
hal_usb_dev_req_resp_t retval;
if( hal_usb_hid_device_req_proc(req, data_ptr, size, &retval) == true )
{
// The request was processed with the result stored in the retval variable
return retval;
}
else
{
The request was *not* processed by the HID subsystem
return STALL;
}
}
uint8_t ep_1_in_cb(uint8_t *adr_ptr, uint8_t* size) large reentrant
{
app_pending_usb_write = false;
return 0x60; // NAK
adr_ptr = adr_ptr;
size = size;
}
I just cannot uderstand the codes corretly.I cannot find where he parameters of the callback fucntions have been initialized. And that ,is there any difference between the "adr_ptr" and the "adr_ptr".Could you give me some help?