diff options
Diffstat (limited to 'os/hal/ports/AVR/avr_pins.h')
-rw-r--r-- | os/hal/ports/AVR/avr_pins.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/os/hal/ports/AVR/avr_pins.h b/os/hal/ports/AVR/avr_pins.h index b89325aff..bcd5a10e2 100644 --- a/os/hal/ports/AVR/avr_pins.h +++ b/os/hal/ports/AVR/avr_pins.h @@ -91,4 +91,69 @@ #endif /* AVR_ADC_USE_ADC1 */
+#if AVR_EXT_USE_PCINT0
+#if defined(__AVR_ATmega162__)
+ #define PCINT0_PIN PINA
+#elif defined(__AVR_ATmega328P__) || \
+ defined(__AVR_ATmega1280__) || \
+ defined(__AVR_ATmega2560__)
+ #define PCINT0_PIN PINB
+#else
+ #warning "Device not supported by EXT driver"
+#endif
+#endif /* AVR_EXT_USE_PCINT0 */
+
+#if AVR_EXT_USE_PCINT1
+#if defined(__AVR_ATmega162__) || \
+ defined(__AVR_ATmega328P__)
+ #define PCINT1_PIN PINC
+#elif defined(__AVR_ATmega1280__) || \
+ defined(__AVR_ATmega2560__)
+ #define PCINT1_PIN PINE
+#else
+ #warning "Device not supported by EXT driver"
+#endif
+#endif /* AVR_EXT_USE_PCINT1 */
+
+#if AVR_EXT_USE_PCINT2
+#if defined(__AVR_ATmega1280__) || \
+ defined(__AVR_ATmega2560__)
+ #define PCINT2_PIN PINK
+#else
+ #warning "Device not supported by EXT driver"
+#endif
+#endif /* AVR_EXT_USE_PCINT2 */
+
+#if AVR_EXT_USE_PCINT3
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT3 */
+
+#if AVR_EXT_USE_PCINT4
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT4 */
+
+#if AVR_EXT_USE_PCINT5
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT5 */
+
+#if AVR_EXT_USE_PCINT6
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT6 */
+
+#if AVR_EXT_USE_PCINT7
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT7 */
+
+#if AVR_EXT_USE_PCINT8
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT8 */
+
+#if AVR_EXT_USE_PCINT9
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT9 */
+
+#if AVR_EXT_USE_PCINT10
+#warning "Device not supported by EXT driver"
+#endif /* AVR_EXT_USE_PCINT10 */
+
#endif /* _AVR_PINS_H_ */
|