Possibly error in USB_HID example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Possibly error in USB_HID example

341 Views
lpcware
NXP Employee
NXP Employee
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?
Labels (1)
0 Kudos
2 Replies

323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jokn on Thu Jan 03 05:11:13 MST 2013
Thank you very much. By now  I checked out the latest version from the git repository
0 Kudos

323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lgentili on Mon Dec 31 16:15:33 MST 2012
This was fix on git:

http://sw.lpcware.com/index.php?p=lpc43xx.git&a=commitdiff&h=c7a807a5c4f05ea3f7c0ae263e5f76be5e51c42...

Checkout git sources to have the lastest fixes and improvements.

0 Kudos