aboutsummaryrefslogtreecommitdiffstats
path: root/fw/main.c
blob: 326f8bf93eb7e2c75223a59b21a85a4460a9aebc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <xc.h>

#include <stdbool.h>
#include <stdint.h>

#include "system.h"
#include "types.h"
#include "spi.h"
#include "eeprom.h"
#include "can.h"
#include "usb.h"

void
main(void) {
	sysInit();
	spiInit();
	eepromInit();
	canInit();
	usbInit();

	for (;;) {
		usbTask();
	}
}

void
__interrupt() isr(void) {

}