IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
Source at commit edfb8a94ebc33e6b985b75d208b51b87b945f7b0 created 13 years 17 days ago. By Werner Almesberger, atusb/fw/Makefile: clean up handing of boot loader base address | |
---|---|
1 | /* |
2 | * fw/atusb.c - ATUSB initialization and main loop |
3 | * |
4 | * Written 2008-2011 by Werner Almesberger |
5 | * Copyright 2008-2011 Werner Almesberger |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | */ |
12 | |
13 | |
14 | #include <stdint.h> |
15 | |
16 | #include <avr/io.h> |
17 | |
18 | #include "usb.h" |
19 | |
20 | #include "board.h" |
21 | #include "spi.h" |
22 | #include "atusb/ep0.h" |
23 | |
24 | |
25 | int main(void) |
26 | { |
27 | board_init(); |
28 | spi_init(); |
29 | reset_rf(); |
30 | |
31 | /* now we should be at 8 MHz */ |
32 | |
33 | usb_init(); |
34 | ep0_init(); |
35 | |
36 | while (1) |
37 | usb_poll(); |
38 | } |
39 |