readme.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*!
  2. \file readme.txt
  3. \brief description of the usb host mode to control hid device
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. This demo is based on the GD32350R-EVAL board, and it provides a description of
  10. how to use the USBFS host peripheral on the GD32F3x0 devices.
  11. Jump the JP13 to USART to show the print message through the serial port.
  12. When an USB Device is attached to the Host port, the device is enumerated and checked
  13. whether it can support HID device, if the attached device is HID one, when the user
  14. press the user key, the mouse or the keyboard application is launched.
  15. If a mouse has been attached, moving the mouse will print the position of the mouse and
  16. the state of botton through the serial port.
  17. If a keyboard has been attached, pressing the keyboard will print the state of the button
  18. through the serial port.
  19. Note: In the USB Host HID class, two layouts are defined in the usbh_hid_keybd.h file
  20. and could be used (Azerty and Querty)
  21. //#define QWERTY_KEYBOARD
  22. #define AZERTY_KEYBOARD
  23. The User can eventually add his own layout by editing the HID_KEYBRD_Key array
  24. in the usbh_hid_keybd.c file.