I 'm using mk20dn512 to develop USB HID.Where can I get demo code?..
The compilation environment is IAR.
Thx!
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
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
谢谢!由于时间紧迫,希望代码不需要移植,直接能调用的没有吗?