Content originally posted in LPCWare by jokn on Sat Dec 29 09:26:30 MST 2012
I just trying out the USB_HID example from the lpc43xx CMSID Library
>> lpc43xx CMSIS Library\2012-05-31\Examples\USBDEV_ROM\Usb_Hid >>
I just trying out the USB_HID example from the lpc43xx CMSID Library V2012-05-31.
lpc43xx CMSIS Library\2012-05-31\Examples\USBDEV_ROM\Usb_Hid
In the file usbd_hid.c inside the function
ErrorCode_t usb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR* pIntfDesc, uint32_t* mem_base, uint32_t* mem_size)
I found this two assignments:
hid_param.mem_base = *mem_base;
hid_param.mem_size = *mem_base;
I suppose the second assignments must be
hid_param.mem_size = *mem_size;
Did anyone tried this example?