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 3c87d9f8c725cc56e1e4a0dc8dceecc43017e7eb created 13 years 7 months ago. By Werner Almesberger, Turn the LED on while in the boot loader. | |
---|---|
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 | |
19 | |
20 | /* |
21 | * Platform-specific settings |
22 | * |
23 | * USB_VENDOR = Qi Hardware |
24 | * USB_PRODUCT = 802.15.4, device 0 |
25 | * -- - - |
26 | */ |
27 | |
28 | #define USB_VENDOR 0x20b7 |
29 | #define USB_PRODUCT 0x1540 |
30 | |
31 | |
32 | /* ----- Boot loader configuration ----------------------------------------- */ |
33 | |
34 | /* |
35 | * Make LED output push-pull so that we can output a high voltage. |
36 | * This turns on the LED, to indicate that we're in the boot loader. |
37 | */ |
38 | |
39 | #define PLATFORM_SETUP \ |
40 | LED_MODE |= 1 << LED_BIT; |
41 | |
42 | |
43 | /* |
44 | * Turn off the LED when we exit the boot loader. |
45 | */ |
46 | |
47 | #define PLATFORM_EXIT \ |
48 | LED = 0 |
49 | |
50 | |
51 | /* ----- Application configuration ----------------------------------------- */ |
52 | |
53 | #define HW_TYPE HW_TYPE_100813 |
54 | |
55 | #endif /* !CONFIG_H */ |
56 |