USB joystick support for 9xrpro (#5776)

* hid-mouse example added

* cmake script and sources fixed

* massstorage is turned off (it is still not used)

* first test (mouse instead of joystick)

* mouse renamed to joystick one more time

* it works

* refactoring

* useless files removed

* usbJoystickUpdate() moved to appropriate place

* masstorage removed for sky9x

* "keyboard" -> "joystick"

* productDescriptor changed to "SKY9X Joystick"

* attempt to fix travis

* joystick.cpp moved to FIRMWARE_TARGET_SRC

* meaningless if removed

* code style fixed for opentx/radio/src/targets/sky9x/joystick.cpp

* Revert "masstorage removed for sky9x"

This reverts commit 426726283fa9930a2742aad86b6163bd9930c446.

* opentx/radio/src/targets/sky9x/usb_driver.cpp added

* useless include removed
This commit is contained in:
Anton Evmenenko
2019-08-26 23:55:48 +02:00
committed by Bertrand Songis
parent fc34d0a995
commit 59d3f2d16f
24 changed files with 2172 additions and 11 deletions
+4
View File
@@ -170,6 +170,10 @@ void lcdSetContrast();
// USB driver
void usbMassStorage();
#if !defined(SIMU)
void usbJoystickUpdate();
#endif
#define PIN_ENABLE 0x001
#define PIN_PERIPHERAL 0x000
#define PIN_INPUT 0x002