where can I get demo code of K20's usb hid

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

where can I get demo code of K20's usb hid

952 Views
molly1968
Contributor I

I 'm using mk20dn512 to develop USB HID.Where can I get demo code?..

The compilation environment is IAR.

Thx!

0 Kudos
Reply
3 Replies

860 Views
miduo
NXP Employee
NXP Employee

Hello,

NXP provides USB Stack includes HID example application for K22.
You could download USB stack from below link:
USB Stack v4.1.1 NXP® bare metal (no OS) USB Stack 

0 Kudos
Reply

860 Views
mjbcswitzerland
Specialist V

Hi Rong

If you find missing support you can fall back on a turn-key solution for HID and K20s in the uTasker project (use the open source version on GitHub if you don't need support).


Kinetis K20:
- http://www.utasker.com/kinetis/FRDM-K20D50M.html
- http://www.utasker.com/kinetis/TWR-K20D50M.html
- http://www.utasker.com/kinetis/TWR-K20D72M.html
- http://www.utasker.com/kinetis/TEENSY_3.1.html
- http://www.utasker.com/kinetis/tinyK20.html

It has HID options for the typical HID classes:
#define USE_USB_HID_MOUSE                    // human interface device (mouse)
#define USE_USB_HID_KEYBOARD                 // human interface device (keyboard)
#define USE_USB_HID_RAW                      // human interface device (raw)

Link to composite device and keyboard testing: http://www.utasker.com/kinetis/USB_Device.html

Projects are included for Keil, IAR, KDS, Codewarrior, MCUXpresso, Green Hills, Rowley Crossworks, CooCox, Atollic, GCC makefile and VisualStudio simulation.

Regards

Mark

0 Kudos
Reply

860 Views
molly1968
Contributor I

谢谢!由于时间紧迫,希望代码不需要移植,直接能调用的没有吗?

0 Kudos
Reply