From: R. Steve McKown Date: Thu, 8 Dec 2011 01:11:47 +0000 (-0700) Subject: Correctly set unused PORTA pins to output high. X-Git-Tag: 1.0~44 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=14505ec7085147a6b5756f5586ce07f0e35e2579 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. --- 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 { \