]> oss.titaniummirror.com Git - rgblamp.git/blobdiff - unused.h
Change to PIC16LF1933
[rgblamp.git] / unused.h
index d957520fce3bb2a5858682abfe8fed76645c9d97..98cca7732908c9ef39a1d83d1d5f38e102b5277a 100644 (file)
--- a/unused.h
+++ b/unused.h
 
 #include <htc.h>
 
-#define UNUSED_PORTA 0b01000111
+#define UNUSED_PORTA 0b11111111
+#define UNUSED_PORTC 0b11111000
 
 /* Initialize unused resources. */
 #define unused_init() do { \
     nWPUEN = 0;             /* enable weak pull-ups on PortB */ \
     PORTA |= UNUSED_PORTA;  /* set unused PortA pins ...     */ \
     TRISA &= ~UNUSED_PORTA; /* ... to output high.           */ \
+    PORTC |= UNUSED_PORTC;  /* set unused PortC pins ...     */ \
+    TRISC &= ~UNUSED_PORTC; /* ... to output high.           */ \
 } while (0)
 
 #endif