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 | |
| 30 | #define PA24 GPIO(GPIO_PORTA, 24) |
| 31 | #define PA25 GPIO(GPIO_PORTA, 25) |
Kévin Redon | 4cd3f7d | 2019-01-24 17:57:13 +0100 | [diff] [blame] | 32 | #define PB24 GPIO(GPIO_PORTB, 24) |
| 33 | #define PB25 GPIO(GPIO_PORTB, 25) |
Kévin Redon | 5908a5c | 2019-01-24 18:45:23 +0100 | [diff] [blame] | 34 | #define LED_system GPIO(GPIO_PORTC, 18) |
Kévin Redon | 69b92d9 | 2019-01-24 16:39:20 +0100 | [diff] [blame] | 35 | |
| 36 | #endif // ATMEL_START_PINS_H_INCLUDED |