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
@@ -20,6 +20,7 @@
*/
#include "stm32_hal_ll.h"
#include "hal/usb_driver.h"
#if defined(BLUETOOTH)
#include "bluetooth_driver.h"
@@ -29,9 +30,7 @@
#include "board.h"
#include "boot.h"
#include "bin_files.h"
#include "dataconstants.h"
#include "lcd.h"
// #include "keys.h"
#include "debug.h"
#include "timers_driver.h"
@@ -100,11 +99,9 @@ FlashCheckRes valid;
MemoryType memoryType;
uint32_t unlocked = 0;
volatile uint32_t timer10MsCount;
void per5ms() {} // make linker happy
void per10ms()
{
timer10MsCount++;
tenms |= 1u; // 10 mS has passed
g_tmr10ms++;
@@ -122,12 +119,6 @@ void per10ms()
#endif
}
extern "C" uint32_t HAL_GetTick(void)
{
return timer10MsCount * 10;
}
uint32_t isValidBufferStart(const uint8_t * buffer)
{
#if !defined(SIMU)