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 4e568b0f1af26658b8d785af2855e34c371d0138 created 13 years 4 months ago. By Werner Almesberger, Adapted firmware for V2 hardware. | |
---|---|
1 | /* |
2 | * common/io.h - I/O pin assignment |
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 | |
14 | #ifndef IO_H |
15 | #define IO_H |
16 | |
17 | /* Diagnostic LED */ |
18 | |
19 | #define LEDv1 P1_3 |
20 | #define LEDv2 P2_2 |
21 | |
22 | /* Probe input */ |
23 | |
24 | #define PROBE_T0 P1_0 |
25 | #define PROBE_ECI P1_1 |
26 | #define PROBE_INT0 P0_7 |
27 | |
28 | /* |
29 | * Probe termination |
30 | * |
31 | * - v1: 100 kOhm termination (not very useful) |
32 | * - v2: pull-up for input amplifier |
33 | */ |
34 | |
35 | #define PROBE_TERM P1_2 |
36 | |
37 | /* |
38 | * Version ID |
39 | * |
40 | * In version 1, P2_1 is used to provide ground to the input side. In version |
41 | * 2, we use a ground place for this and P2_1 is unconnected. We can therefore |
42 | * use it to identify the hardware version. |
43 | */ |
44 | |
45 | #define VERSION_ID P2_1 |
46 | |
47 | #endif /* !IO_H */ |
48 |