|
| 1 | +pub use atxmega_hal::port::{mode, Pin}; |
| 2 | + |
| 3 | +avr_hal_generic::renamed_pins! { |
| 4 | + /// Pins of the **Arduino Nano Every**. |
| 5 | + /// |
| 6 | + /// This struct is best initialized via the [`arduino_hal::pins!()`][crate::pins] macro. |
| 7 | + pub struct Pins { |
| 8 | + /// `A0` |
| 9 | + /// |
| 10 | + /// * AIN3 (ADC input pin 3) |
| 11 | + /// * INT27: External Interrupt |
| 12 | + pub a0: atxmega_hal::port::PD3 = pd3, |
| 13 | + /// `A1` |
| 14 | + /// |
| 15 | + /// * AIN2 (ADC input pin 2) |
| 16 | + /// * INT26: External Interrupt |
| 17 | + pub a1: atxmega_hal::port::PD2 = pd2, |
| 18 | + /// `A2` |
| 19 | + /// |
| 20 | + /// * AIN1 (ADC input channel 2) |
| 21 | + /// * INT25: External Interrupt |
| 22 | + pub a2: atxmega_hal::port::PD1 = pd1, |
| 23 | + /// `A3` |
| 24 | + /// |
| 25 | + /// * AIN0 (ADC input channel 0) |
| 26 | + /// * INT24: External Interrupt |
| 27 | + pub a3: atxmega_hal::port::PD0 = pd0, |
| 28 | + /// `A4` |
| 29 | + /// |
| 30 | + /// * AIN12 (ADC input channel 12) |
| 31 | + /// * SDA (2-wire serial bus data input/output line) |
| 32 | + /// * INT2: External Interrupt |
| 33 | + pub a4: atxmega_hal::port::PF2 = pf2, |
| 34 | + /// `A5` |
| 35 | + /// |
| 36 | + /// * AIN13 (ADC input channel 13) |
| 37 | + /// * SCL (2-wire serial bus clock line) |
| 38 | + /// * INT3: External Interrupt |
| 39 | + pub a5: atxmega_hal::port::PF3 = pf3, |
| 40 | + /// `A6` |
| 41 | + /// |
| 42 | + /// * AIN4 (ADC input channel 5) |
| 43 | + /// * INT28: External Interrupt |
| 44 | + pub a6: atxmega_hal::port::PD4 = pd4, |
| 45 | + /// `A7` |
| 46 | + /// |
| 47 | + /// * AIN5 (ADC input channel 5) |
| 48 | + /// * INT29: External Interrupt |
| 49 | + pub a7: atxmega_hal::port::PD5 = pd5, |
| 50 | + /// `D0` / `RX` |
| 51 | + /// |
| 52 | + /// * RXD (USART input pin) |
| 53 | + /// * INT20: External Interrupt |
| 54 | + pub d0: atxmega_hal::port::PC5 = pc5, |
| 55 | + /// `D1` / `TX` |
| 56 | + /// |
| 57 | + /// * TXD (USART output pin) |
| 58 | + /// * INT21: External Interrupt |
| 59 | + pub d1: atxmega_hal::port::PC4 = pc4, |
| 60 | + /// `D2` |
| 61 | + /// |
| 62 | + /// * INT0: External Interrupt |
| 63 | + pub d2: atxmega_hal::port::PA0 = pa0, |
| 64 | + /// `D3` |
| 65 | + /// |
| 66 | + /// * AIN15 (analog comparator positive input) |
| 67 | + /// * INT45: External Interrupt |
| 68 | + pub d3: atxmega_hal::port::PF5 = pf5, |
| 69 | + /// `D4` |
| 70 | + /// |
| 71 | + /// * INT22: External Interrupt |
| 72 | + pub d4: atxmega_hal::port::PC6 = pc6, |
| 73 | + /// `D5` |
| 74 | + /// |
| 75 | + /// * **PWM**: |
| 76 | + /// * INT22: External Interrupt |
| 77 | + pub d5: atxmega_hal::port::PB2 = pb2, |
| 78 | + /// `D6` |
| 79 | + /// |
| 80 | + /// * **PWM** |
| 81 | + /// * AIN14 (analog comparator positive input) |
| 82 | + /// * INT44: External Interrupt |
| 83 | + pub d6: atxmega_hal::port::PF4 = pf4, |
| 84 | + /// `D7` |
| 85 | + /// |
| 86 | + /// * INT1: External Interrupt |
| 87 | + pub d7: atxmega_hal::port::PA1 = pa1, |
| 88 | + /// `D8` |
| 89 | + /// |
| 90 | + /// * INT35: External Interrupt |
| 91 | + pub d8: atxmega_hal::port::PE3 = pe3, |
| 92 | + /// `D9` |
| 93 | + /// |
| 94 | + /// * **PWM** |
| 95 | + /// * INT9: External Interrupt |
| 96 | + pub d9: atxmega_hal::port::PB0 = pb0, |
| 97 | + /// `D10` |
| 98 | + /// |
| 99 | + /// * **PWM** |
| 100 | + /// * INT10: External Interrupt |
| 101 | + pub d10: atxmega_hal::port::PB1 = pb1, |
| 102 | + /// `D11` |
| 103 | + /// |
| 104 | + /// * **PWM** |
| 105 | + /// * INT32: External Interrupt |
| 106 | + pub d11: atxmega_hal::port::PE0 = pe0, |
| 107 | + /// `D12` |
| 108 | + /// |
| 109 | + /// * INT33: External Interrupt |
| 110 | + pub d12: atxmega_hal::port::PE1 = pe1, |
| 111 | + /// `D13` |
| 112 | + /// |
| 113 | + /// * SCK (SPI bus master clock input) |
| 114 | + /// * INT34: External Interrupt |
| 115 | + /// * L LED on Arduino Uno |
| 116 | + pub d13: atxmega_hal::port::PE2 = pe2, |
| 117 | + |
| 118 | + pub rx : atxmega_hal::port::PB5= pb5, |
| 119 | + pub tx : atxmega_hal::port::PB4 = pb4, |
| 120 | + } |
| 121 | + |
| 122 | + impl Pins { |
| 123 | + type Pin = Pin; |
| 124 | + type McuPins = atxmega_hal::Pins; |
| 125 | + } |
| 126 | +} |
0 commit comments