diff options
| author | Dien-Nhung Nguyen-Phu <kein@kienlab.com> | 2024-07-11 21:05:17 +0700 |
|---|---|---|
| committer | Dien-Nhung Nguyen-Phu <kein@kienlab.com> | 2024-07-11 22:18:56 +0700 |
| commit | 4f3b6f4283e0240060c04a137175cacfb385dc16 (patch) | |
| tree | 08678550d8577f9c30a5868dc5ae749c22de1d3e /src/main.c | |
| parent | 515c8a8eb9fec5f6992db7f5cf9b9c8bdb539f46 (diff) | |
usb: handle device request and route to interfaces
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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);
|