IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2010-11-03 14:21:22 (13 years 4 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 188bdb892b29444982042a4944f697585864af20 |
Message: | Support design version 2 in the boot loader. - cntr/fw/common/io.h (LED): define version-specific LED pins - cntr/fw/common/io.h (PROBE_TERM): describe how the role differs between version 1 and 2 - cntr/fw/common/config.h (PLATFORM_ENTER, PLATFORM_EXIT): add the version 2 LED |
Files: |
cntr/fw/common/config.h (1 diff) cntr/fw/common/io.h (2 diffs) |
Change Details
cntr/fw/common/config.h | ||
---|---|---|
35 | 35 | */ |
36 | 36 | |
37 | 37 | #define PLATFORM_ENTER \ |
38 | LED_MODE |= 1 << LED_BIT; \ | |
39 | XBR1 = XBARE; | |
38 | LEDv1_MODE |= 1 << LEDv1_BIT; \ | |
39 | LEDv2_MODE |= 1 << LEDv2_BIT; \ | |
40 | XBR1 = XBARE | |
40 | 41 | |
41 | 42 | |
42 | 43 | /* |
43 | 44 | * Turn off the LED when we exit the boot loader. |
44 | 45 | */ |
45 | 46 | |
46 | #define PLATFORM_EXIT \ | |
47 | LED = 0 | |
47 | #define PLATFORM_EXIT \ | |
48 | LEDv1 = 0; \ | |
49 | LEDv2 = 0 | |
48 | 50 | |
49 | 51 | |
50 | 52 | /* ----- Application configuration ----------------------------------------- */ |
cntr/fw/common/io.h | ||
---|---|---|
16 | 16 | |
17 | 17 | /* Diagnostic LED */ |
18 | 18 | |
19 | #define LED P1_3 | |
19 | #define LEDv1 P1_3 | |
20 | #define LEDv2 P2_2 | |
20 | 21 | |
21 | 22 | /* Probe input */ |
22 | 23 | |
... | ... | |
24 | 25 | #define PROBE_ECI P1_1 |
25 | 26 | #define PROBE_INT0 P0_7 |
26 | 27 | |
27 | /* Probe termination */ | |
28 | /* | |
29 | * Probe termination | |
30 | * | |
31 | * - v1: 100 kOhm termination (not very useful) | |
32 | * - v2: pull-up for input amplifier | |
33 | */ | |
28 | 34 | |
29 | 35 | #define PROBE_TERM P1_2 |
30 | 36 |