aboutsummaryrefslogtreecommitdiffstats
path: root/fw/main.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-09-04 19:05:46 -0400
committerSam Anthony <sam@samanthony.xyz>2025-09-04 19:05:46 -0400
commitba6fb7522c7333b3a9081a823f2b93a425b36022 (patch)
treeaaafafbae3d731f588b328f3be8bc1cfaa622a01 /fw/main.c
parent22b2225c186de8322a2918afc59b95f4120ee641 (diff)
downloadcan-gauge-interface-ba6fb7522c7333b3a9081a823f2b93a425b36022.zip
fw: usb
Diffstat (limited to 'fw/main.c')
-rw-r--r--fw/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fw/main.c b/fw/main.c
index cdc3fc2..3c54179 100644
--- a/fw/main.c
+++ b/fw/main.c
@@ -2,11 +2,13 @@
#include <stdint.h>
+#include <usb_device.h>
+
#include "types.h"
#include "init.h"
#include "spi.h"
#include "eeprom.h"
-#include "config.h"
+#include "usb.h"
void
main(void) {
@@ -14,9 +16,11 @@ main(void) {
pinsInit();
spiInit();
eepromInit();
+ USBDeviceInit();
+ USBDeviceAttach();
for (;;) {
-
+ usbTask();
}
}