usb: handle device request and route to interfaces

This commit is contained in:
Dien-Nhung Nguyen-Phu
2024-07-11 21:05:17 +07:00
parent 515c8a8eb9
commit 4f3b6f4283
8 changed files with 629 additions and 0 deletions

View File

@@ -10,6 +10,8 @@
#include "ble/setup.h"
#include "ble/profile.h"
#include "usb/usb.h"
#define FB_WIDTH (LED_COLS * 4)
#define SCROLL_IRATIO (16)
#define SCAN_F (2000)
@@ -139,6 +141,8 @@ int main()
debug_init();
PRINT("\nDebug console is on UART%d\n", DEBUG);
usb_start();
led_init();
TMR0_TimerInit(SCAN_T / 2);
TMR0_ITCfg(ENABLE, TMR0_3_IT_CYC_END);