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
+8 -1
View File
@@ -90,14 +90,20 @@ set(FIRMWARE_TARGET_SRC
eeprom_driver.cpp
lcd_driver.cpp
pwr_driver.cpp
joystick.cpp
massstorage.cpp
keys_driver.cpp
usb/device/core/USBD_UDP.c
usb/device/core/USBDDriver.c
usb_driver.cpp
usb/device/massstorage/MSDDriver.c
usb/device/massstorage/MSDDStateMachine.c
usb/device/massstorage/MSDLun.c
usb/device/massstorage/MSDDriverDescriptors.c
usb/device/massstorage/SBCMethods.c
usb/device/hid-joystick/HIDDJoystickDriver.c
usb/device/hid-joystick/HIDDJoystickDriverDescriptors.c
usb/device/hid-joystick/HIDDJoystickInputReport.c
usb/common/core/USBEndpointDescriptor.c
usb/common/core/USBGenericRequest.c
usb/common/core/USBFeatureRequest.c
@@ -107,6 +113,8 @@ set(FIRMWARE_TARGET_SRC
usb/common/core/USBSetConfigurationRequest.c
usb/common/core/USBConfigurationDescriptor.c
usb/common/core/USBGenericDescriptor.c
usb/common/hid/HIDIdleRequest.c
usb/common/hid/HIDReportRequest.c
MEDSdcard.c
)
@@ -119,7 +127,6 @@ set(TARGET_SRC
buzzer_driver.cpp
haptic_driver.cpp
sdcard_driver.cpp
massstorage.cpp
aux_serial_driver.cpp
audio_driver.cpp
trainer_driver.cpp