mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 18:47:11 +02:00
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
This commit is contained in:
parent
0fc2960b17
commit
188bdb892b
@ -35,8 +35,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define PLATFORM_ENTER \
|
#define PLATFORM_ENTER \
|
||||||
LED_MODE |= 1 << LED_BIT; \
|
LEDv1_MODE |= 1 << LEDv1_BIT; \
|
||||||
XBR1 = XBARE;
|
LEDv2_MODE |= 1 << LEDv2_BIT; \
|
||||||
|
XBR1 = XBARE
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -44,7 +45,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define PLATFORM_EXIT \
|
#define PLATFORM_EXIT \
|
||||||
LED = 0
|
LEDv1 = 0; \
|
||||||
|
LEDv2 = 0
|
||||||
|
|
||||||
|
|
||||||
/* ----- Application configuration ----------------------------------------- */
|
/* ----- Application configuration ----------------------------------------- */
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
|
|
||||||
/* Diagnostic LED */
|
/* Diagnostic LED */
|
||||||
|
|
||||||
#define LED P1_3
|
#define LEDv1 P1_3
|
||||||
|
#define LEDv2 P2_2
|
||||||
|
|
||||||
/* Probe input */
|
/* Probe input */
|
||||||
|
|
||||||
@ -24,7 +25,12 @@
|
|||||||
#define PROBE_ECI P1_1
|
#define PROBE_ECI P1_1
|
||||||
#define PROBE_INT0 P0_7
|
#define PROBE_INT0 P0_7
|
||||||
|
|
||||||
/* Probe termination */
|
/*
|
||||||
|
* Probe termination
|
||||||
|
*
|
||||||
|
* - v1: 100 kOhm termination (not very useful)
|
||||||
|
* - v2: pull-up for input amplifier
|
||||||
|
*/
|
||||||
|
|
||||||
#define PROBE_TERM P1_2
|
#define PROBE_TERM P1_2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user