--- /dev/null
+/*
+ * File: unused.h
+ *
+ * Initialize unused resources
+ */
+
+
+#ifndef _UNUSED_H
+#define _UNUSED_H
+
+#include <htc.h>
+
+#define UNUSED_PORTA 0b00000000
+
+/* 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. */ \
+} while (0)
+
+#endif