refactor: USB HAL conversion + USB lib update (#4207)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Malte Langermann
2023-12-24 11:01:48 +10:00
committed by GitHub
co-authored by raphaelcoeffic Richard Li
parent a68ad817d7
commit c9334ebda3
164 changed files with 14757 additions and 23526 deletions
+1
View File
@@ -24,6 +24,7 @@
#include "opentx.h"
#include "tasks/mixer_task.h"
#include "hal/adc_driver.h"
#include "hal/usb_driver.h"
#include "input_mapping.h"
const unsigned char sticks[] = {
+6 -2
View File
@@ -306,6 +306,7 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlag
break;
}
else if (c >= 0x20) {
#if !defined(BOOT)
// UTF8 detection
c = map_utf8_char(s, len);
if (!c) break;
@@ -319,11 +320,14 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlag
lcdDrawPoint(x, y + 5 -1 , flags);
}
x += 2;
}
else {
} else {
lcdDrawChar(x, y, c, flags);
x = lcdNextPos;
}
#else
lcdDrawChar(x, y, c, flags);
x = lcdNextPos;
#endif
}
else if (c == 0x1F) { //X-coord prefix
setx = true;
+1
View File
@@ -20,6 +20,7 @@
*/
#include "hal/adc_driver.h"
#include "hal/usb_driver.h"
#define LANGUAGE_PACKS_DEFINITION
+1
View File
@@ -23,6 +23,7 @@
#include "hal/trainer_driver.h"
#include "hal/adc_driver.h"
#include "hal/switch_driver.h"
#include "hal/usb_driver.h"
#include "switches.h"
#include "input_mapping.h"
+1
View File
@@ -28,6 +28,7 @@
#include "tasks/mixer_task.h"
#include "hal/adc_driver.h"
#include "hal/usb_driver.h"
#define SET_DIRTY() storageDirty(EE_GENERAL)
@@ -20,6 +20,8 @@
*/
#include "opentx.h"
#include "hal/usb_driver.h"
#include "widgets_container_impl.h"
#include "theme.h"