X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=unused.h;h=98cca7732908c9ef39a1d83d1d5f38e102b5277a;hb=b8cc7d22ae11576cdf44ca2cd3b39d64e514a930;hp=d957520fce3bb2a5858682abfe8fed76645c9d97;hpb=77bec8ca2aa7d464cb5d3034a497e0ff8933864a;p=rgblamp.git diff --git a/unused.h b/unused.h index d957520..98cca77 100644 --- a/unused.h +++ b/unused.h @@ -10,13 +10,16 @@ #include -#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