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 3584b5b7367c436737b91dd0d8a4a6f65327d784 created 13 years 7 months ago. By Werner Almesberger, Got "cntr" to show signs of life. It was the watchdog, as usual. | |
---|---|
1 | /* |
2 | * common/config.h - Configuration data for boot loader and application |
3 | * |
4 | * Written 2010 by Werner Almesberger |
5 | * Copyright 2010 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 | #ifndef CONFIG_H |
14 | #define CONFIG_H |
15 | |
16 | #include "io.h" |
17 | #include "io-parts.h" |
18 | #include "cntr/usb-ids.h" |
19 | |
20 | |
21 | /* ----- Boot loader configuration ----------------------------------------- */ |
22 | |
23 | /* |
24 | * Disable the watchdog. |
25 | */ |
26 | |
27 | #define PLATFORM_SETUP \ |
28 | PCA0MD = 0; |
29 | |
30 | |
31 | /* |
32 | * Make LED output push-pull so that we can output a high voltag, then enable |
33 | * the crossbar. This turns on the LED, to indicate that we're in the boot |
34 | * loader. |
35 | */ |
36 | |
37 | #define PLATFORM_ENTER \ |
38 | LED_MODE |= 1 << LED_BIT; \ |
39 | XBR1 = XBARE; |
40 | |
41 | |
42 | /* |
43 | * Turn off the LED when we exit the boot loader. |
44 | */ |
45 | |
46 | #define PLATFORM_EXIT \ |
47 | LED = 0 |
48 | |
49 | |
50 | /* ----- Application configuration ----------------------------------------- */ |
51 | |
52 | #define HW_TYPE 0 |
53 | |
54 | #endif /* !CONFIG_H */ |
55 |