blob: 60b70bbd1abb77634432a18fe24b2eaa6ad78c80 [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
Harald Welte092494e2019-02-24 10:33:40 +010030#define SIM4_INT GPIO(GPIO_PORTA, 2)
31#define SIM5_INT GPIO(GPIO_PORTA, 3)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010032#define SIM0_IO GPIO(GPIO_PORTA, 4)
33#define SIM2_IO GPIO(GPIO_PORTA, 9)
Kévin Redon6a8295c2019-01-30 18:58:44 +010034#define SIMCLK_20MHZ GPIO(GPIO_PORTA, 11)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010035#define SIM1_IO GPIO(GPIO_PORTA, 16)
Kévin Redon6a8295c2019-01-30 18:58:44 +010036#define VB0 GPIO(GPIO_PORTA, 20)
37#define VB1 GPIO(GPIO_PORTA, 21)
38#define VB2 GPIO(GPIO_PORTA, 22)
39#define VB3 GPIO(GPIO_PORTA, 23)
Kévin Redon4e39b012019-01-30 15:55:58 +010040#define USBUP_D_N GPIO(GPIO_PORTA, 24)
41#define USBUP_D_P GPIO(GPIO_PORTA, 25)
Harald Welte092494e2019-02-24 10:33:40 +010042#define SCL2 GPIO(GPIO_PORTB, 2)
43#define SDA2 GPIO(GPIO_PORTB, 3)
44#define SIM6_INT GPIO(GPIO_PORTB, 4)
45#define SIM7_INT GPIO(GPIO_PORTB, 5)
46#define SCL3 GPIO(GPIO_PORTB, 6)
47#define SDA3 GPIO(GPIO_PORTB, 7)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010048#define SIM4_IO GPIO(GPIO_PORTB, 8)
Harald Welte092494e2019-02-24 10:33:40 +010049#define SCL1 GPIO(GPIO_PORTB, 14)
50#define SDA1 GPIO(GPIO_PORTB, 15)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010051#define SIM5_IO GPIO(GPIO_PORTB, 16)
52#define SIM3_IO GPIO(GPIO_PORTB, 20)
Kévin Redon4e39b012019-01-30 15:55:58 +010053#define UART_TX GPIO(GPIO_PORTB, 30)
54#define UART_RX GPIO(GPIO_PORTB, 31)
Harald Welte092494e2019-02-24 10:33:40 +010055#define SIM0_INT GPIO(GPIO_PORTC, 0)
56#define SIM1_INT GPIO(GPIO_PORTC, 1)
57#define SIM2_INT GPIO(GPIO_PORTC, 2)
58#define SIM3_INT GPIO(GPIO_PORTC, 3)
Kévin Redon6a8295c2019-01-30 18:58:44 +010059#define SWITCH GPIO(GPIO_PORTC, 14)
Harald Welte092494e2019-02-24 10:33:40 +010060#define MUX_SSTAT GPIO(GPIO_PORTC, 15)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010061#define SIM6_IO GPIO(GPIO_PORTC, 16)
Kévin Redon6a8295c2019-01-30 18:58:44 +010062#define USER_LED GPIO(GPIO_PORTC, 26)
Harald Welte092494e2019-02-24 10:33:40 +010063#define SCL4 GPIO(GPIO_PORTC, 27)
64#define SDA4 GPIO(GPIO_PORTC, 28)
Kévin Redon69b92d92019-01-24 16:39:20 +010065
66#endif // ATMEL_START_PINS_H_INCLUDED