aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-07-11 21:05:17 +0700
committerDien-Nhung Nguyen-Phu <kein@kienlab.com>2024-07-11 22:18:56 +0700
commit4f3b6f4283e0240060c04a137175cacfb385dc16 (patch)
tree08678550d8577f9c30a5868dc5ae749c22de1d3e /src/main.c
parent515c8a8eb9fec5f6992db7f5cf9b9c8bdb539f46 (diff)
usb: handle device request and route to interfaces
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 21fc948..4f46181 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);