aboutsummaryrefslogtreecommitdiffstats
path: root/fw/main.c
blob: 3c54179ccd17be10155c73289d47ef8f5e175e9a (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
30
#include <xc.h>

#include <stdint.h>

#include <usb_device.h>

#include "types.h"
#include "init.h"
#include "spi.h"
#include "eeprom.h"
#include "usb.h"

void
main(void) {
	clockInit();
	pinsInit();
	spiInit();
	eepromInit();
	USBDeviceInit();
	USBDeviceAttach();

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

void
__interrupt() isr(void) {

}