blob: 884a562cb4237b180c54c2d8eb5215b6b7a95f37 [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
Kévin Redon4e39b012019-01-30 15:55:58 +010030#define USBUP_D_N GPIO(GPIO_PORTA, 24)
31#define USBUP_D_P GPIO(GPIO_PORTA, 25)
32#define UART_TX GPIO(GPIO_PORTB, 30)
33#define UART_RX GPIO(GPIO_PORTB, 31)
34#define LED_system GPIO(GPIO_PORTC, 26)
Kévin Redon69b92d92019-01-24 16:39:20 +010035
36#endif // ATMEL_START_PINS_H_INCLUDED