Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Code generated from Atmel Start. |
| 3 | * |
| 4 | * This file will be overwritten when reconfiguring your Atmel Start project. |
| 5 | * Please copy examples or other code you want to keep to a separate file |
| 6 | * to avoid losing it when reconfiguring. |
| 7 | */ |
| 8 | #ifndef ATMEL_START_PINS_H_INCLUDED |
| 9 | #define ATMEL_START_PINS_H_INCLUDED |
| 10 | |
| 11 | #include <hal_gpio.h> |
| 12 | |
| 13 | // SAME54 has 14 pin functions |
| 14 | |
| 15 | #define GPIO_PIN_FUNCTION_A 0 |
| 16 | #define GPIO_PIN_FUNCTION_B 1 |
| 17 | #define GPIO_PIN_FUNCTION_C 2 |
| 18 | #define GPIO_PIN_FUNCTION_D 3 |
| 19 | #define GPIO_PIN_FUNCTION_E 4 |
| 20 | #define GPIO_PIN_FUNCTION_F 5 |
| 21 | #define GPIO_PIN_FUNCTION_G 6 |
| 22 | #define GPIO_PIN_FUNCTION_H 7 |
| 23 | #define GPIO_PIN_FUNCTION_I 8 |
| 24 | #define GPIO_PIN_FUNCTION_J 9 |
| 25 | #define GPIO_PIN_FUNCTION_K 10 |
| 26 | #define GPIO_PIN_FUNCTION_L 11 |
| 27 | #define GPIO_PIN_FUNCTION_M 12 |
| 28 | #define GPIO_PIN_FUNCTION_N 13 |
| 29 | |
Harald Welte | 092494e | 2019-02-24 10:33:40 +0100 | [diff] [blame] | 30 | #define SIM4_INT GPIO(GPIO_PORTA, 2) |
| 31 | #define SIM5_INT GPIO(GPIO_PORTA, 3) |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 32 | #define SIM0_IO GPIO(GPIO_PORTA, 4) |
| 33 | #define SIM2_IO GPIO(GPIO_PORTA, 9) |
Kévin Redon | f53d366 | 2019-04-25 13:55:06 +0200 | [diff] [blame] | 34 | #define RMII_CLOCK GPIO(GPIO_PORTA, 10) |
Kévin Redon | 6a8295c | 2019-01-30 18:58:44 +0100 | [diff] [blame] | 35 | #define SIMCLK_20MHZ GPIO(GPIO_PORTA, 11) |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 36 | #define SIM1_IO GPIO(GPIO_PORTA, 16) |
Kévin Redon | 6a8295c | 2019-01-30 18:58:44 +0100 | [diff] [blame] | 37 | #define VB0 GPIO(GPIO_PORTA, 20) |
| 38 | #define VB1 GPIO(GPIO_PORTA, 21) |
| 39 | #define VB2 GPIO(GPIO_PORTA, 22) |
| 40 | #define VB3 GPIO(GPIO_PORTA, 23) |
Kévin Redon | 4e39b01 | 2019-01-30 15:55:58 +0100 | [diff] [blame] | 41 | #define USBUP_D_N GPIO(GPIO_PORTA, 24) |
| 42 | #define USBUP_D_P GPIO(GPIO_PORTA, 25) |
Harald Welte | 092494e | 2019-02-24 10:33:40 +0100 | [diff] [blame] | 43 | #define SCL2 GPIO(GPIO_PORTB, 2) |
| 44 | #define SDA2 GPIO(GPIO_PORTB, 3) |
| 45 | #define SIM6_INT GPIO(GPIO_PORTB, 4) |
| 46 | #define SIM7_INT GPIO(GPIO_PORTB, 5) |
| 47 | #define SCL3 GPIO(GPIO_PORTB, 6) |
| 48 | #define SDA3 GPIO(GPIO_PORTB, 7) |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 49 | #define SIM4_IO GPIO(GPIO_PORTB, 8) |
Harald Welte | 092494e | 2019-02-24 10:33:40 +0100 | [diff] [blame] | 50 | #define SCL1 GPIO(GPIO_PORTB, 14) |
| 51 | #define SDA1 GPIO(GPIO_PORTB, 15) |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 52 | #define SIM5_IO GPIO(GPIO_PORTB, 16) |
| 53 | #define SIM3_IO GPIO(GPIO_PORTB, 20) |
Kévin Redon | 4e39b01 | 2019-01-30 15:55:58 +0100 | [diff] [blame] | 54 | #define UART_TX GPIO(GPIO_PORTB, 30) |
| 55 | #define UART_RX GPIO(GPIO_PORTB, 31) |
Harald Welte | 092494e | 2019-02-24 10:33:40 +0100 | [diff] [blame] | 56 | #define SIM0_INT GPIO(GPIO_PORTC, 0) |
| 57 | #define SIM1_INT GPIO(GPIO_PORTC, 1) |
| 58 | #define SIM2_INT GPIO(GPIO_PORTC, 2) |
| 59 | #define SIM3_INT GPIO(GPIO_PORTC, 3) |
Kévin Redon | 6a8295c | 2019-01-30 18:58:44 +0100 | [diff] [blame] | 60 | #define SWITCH GPIO(GPIO_PORTC, 14) |
Kévin Redon | 3c045b2 | 2019-02-26 19:52:02 +0100 | [diff] [blame] | 61 | #define MUX_STAT GPIO(GPIO_PORTC, 15) |
Kévin Redon | 1f8ecef | 2019-01-31 13:36:12 +0100 | [diff] [blame] | 62 | #define SIM6_IO GPIO(GPIO_PORTC, 16) |
Kévin Redon | 6a8295c | 2019-01-30 18:58:44 +0100 | [diff] [blame] | 63 | #define USER_LED GPIO(GPIO_PORTC, 26) |
Harald Welte | 092494e | 2019-02-24 10:33:40 +0100 | [diff] [blame] | 64 | #define SCL4 GPIO(GPIO_PORTC, 27) |
| 65 | #define SDA4 GPIO(GPIO_PORTC, 28) |
Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 66 | |
| 67 | #endif // ATMEL_START_PINS_H_INCLUDED |