blob: 7c774ed4f48c0398a38de4ae41a4e4c4e990dee1 [file] [log] [blame]
Kévin Redon69b92d92019-01-24 16:39:20 +01001/*
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 Redon4cd3f7d2019-01-24 17:57:13 +010032#define PB24 GPIO(GPIO_PORTB, 24)
33#define PB25 GPIO(GPIO_PORTB, 25)
Kévin Redon5908a5c2019-01-24 18:45:23 +010034#define LED_system GPIO(GPIO_PORTC, 18)
Kévin Redon69b92d92019-01-24 16:39:20 +010035
36#endif // ATMEL_START_PINS_H_INCLUDED