]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
Correctly set unused PORTA pins to output high.
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 8 Dec 2011 01:11:47 +0000 (18:11 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 8 Dec 2011 01:11:47 +0000 (18:11 -0700)
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
unused.h

diff --git a/main.c b/main.c
index 765c75363717ba51d0da4a7d641e4f04f9930f60..602e7aa81ad70594ad9addfb20c64138c2be8233 100644 (file)
--- 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
index f11272eb85e6a9b73e4d87a45e4d8564e8a418d0..d957520fce3bb2a5858682abfe8fed76645c9d97 100644 (file)
--- a/unused.h
+++ b/unused.h
@@ -10,7 +10,7 @@
 
 #include <htc.h>
 
-#define UNUSED_PORTA 0b00000000
+#define UNUSED_PORTA 0b01000111
 
 /* Initialize unused resources. */
 #define unused_init() do { \