From 14505ec7085147a6b5756f5586ce07f0e35e2579 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Wed, 7 Dec 2011 18:11:47 -0700 Subject: [PATCH] Correctly set unused PORTA pins to output high. One of these is overridden by the dbgpin() macros in main.c, but that code is likely to go away at some point. --- main.c | 4 ++-- unused.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 765c753..602e7aa 100644 --- a/main.c +++ b/main.c @@ -15,8 +15,8 @@ * - ( 9) RB3 - CCP1 PWM for red LED * - (10) RB4 - rocker switch position B (right) * - (11) RB5 - rocker switch position A (left) - * - (12) RB6 - unused - * - (13) RB7 - unused + * - (12) RB6 - unused (future crystal) + * - (13) RB7 - unused (future crystal) * - (14) Vdd * - (15) RA6 - unused * - (16) RA7 - CCP2 PWM for grn LED diff --git a/unused.h b/unused.h index f11272e..d957520 100644 --- a/unused.h +++ b/unused.h @@ -10,7 +10,7 @@ #include -#define UNUSED_PORTA 0b00000000 +#define UNUSED_PORTA 0b01000111 /* Initialize unused resources. */ #define unused_init() do { \ -- 2.39.2