blob: 0c3353670a8a81c71a3e8f39f3b604a739e19cc1 [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 Redonf53d3662019-04-25 13:55:06 +020034#define RMII_CLOCK GPIO(GPIO_PORTA, 10)
Kévin Redon6a8295c2019-01-30 18:58:44 +010035#define SIMCLK_20MHZ GPIO(GPIO_PORTA, 11)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010036#define SIM1_IO GPIO(GPIO_PORTA, 16)
Kévin Redon6a8295c2019-01-30 18:58:44 +010037#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 Redon4e39b012019-01-30 15:55:58 +010041#define USBUP_D_N GPIO(GPIO_PORTA, 24)
42#define USBUP_D_P GPIO(GPIO_PORTA, 25)
Harald Welte092494e2019-02-24 10:33:40 +010043#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 Redon1f8ecef2019-01-31 13:36:12 +010049#define SIM4_IO GPIO(GPIO_PORTB, 8)
Harald Welte092494e2019-02-24 10:33:40 +010050#define SCL1 GPIO(GPIO_PORTB, 14)
51#define SDA1 GPIO(GPIO_PORTB, 15)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010052#define SIM5_IO GPIO(GPIO_PORTB, 16)
53#define SIM3_IO GPIO(GPIO_PORTB, 20)
Kévin Redon4e39b012019-01-30 15:55:58 +010054#define UART_TX GPIO(GPIO_PORTB, 30)
55#define UART_RX GPIO(GPIO_PORTB, 31)
Harald Welte092494e2019-02-24 10:33:40 +010056#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 Redon6a8295c2019-01-30 18:58:44 +010060#define SWITCH GPIO(GPIO_PORTC, 14)
Kévin Redon3c045b22019-02-26 19:52:02 +010061#define MUX_STAT GPIO(GPIO_PORTC, 15)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010062#define SIM6_IO GPIO(GPIO_PORTC, 16)
Eric Wild22887032019-11-27 18:10:39 +010063#define SIM7_IO GPIO(GPIO_PORTB, 21)
Kévin Redon6a8295c2019-01-30 18:58:44 +010064#define USER_LED GPIO(GPIO_PORTC, 26)
Harald Welte092494e2019-02-24 10:33:40 +010065#define SCL4 GPIO(GPIO_PORTC, 27)
66#define SDA4 GPIO(GPIO_PORTC, 28)
Kévin Redon69b92d92019-01-24 16:39:20 +010067
68#endif // ATMEL_START_PINS_H_INCLUDED