blob: ad5f27befab42d54615c915d24e89987be55d090 [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 Redon1f8ecef2019-01-31 13:36:12 +010030#define SIM0_IO GPIO(GPIO_PORTA, 4)
31#define SIM2_IO GPIO(GPIO_PORTA, 9)
Kévin Redon6a8295c2019-01-30 18:58:44 +010032#define SIMCLK_20MHZ GPIO(GPIO_PORTA, 11)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010033#define SIM1_IO GPIO(GPIO_PORTA, 16)
Kévin Redon6a8295c2019-01-30 18:58:44 +010034#define VB0 GPIO(GPIO_PORTA, 20)
35#define VB1 GPIO(GPIO_PORTA, 21)
36#define VB2 GPIO(GPIO_PORTA, 22)
37#define VB3 GPIO(GPIO_PORTA, 23)
Kévin Redon4e39b012019-01-30 15:55:58 +010038#define USBUP_D_N GPIO(GPIO_PORTA, 24)
39#define USBUP_D_P GPIO(GPIO_PORTA, 25)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010040#define SIM4_IO GPIO(GPIO_PORTB, 8)
41#define SIM5_IO GPIO(GPIO_PORTB, 16)
42#define SIM3_IO GPIO(GPIO_PORTB, 20)
Kévin Redon4e39b012019-01-30 15:55:58 +010043#define UART_TX GPIO(GPIO_PORTB, 30)
44#define UART_RX GPIO(GPIO_PORTB, 31)
Kévin Redon6a8295c2019-01-30 18:58:44 +010045#define SWITCH GPIO(GPIO_PORTC, 14)
Kévin Redon1f8ecef2019-01-31 13:36:12 +010046#define SIM6_IO GPIO(GPIO_PORTC, 16)
Kévin Redon6a8295c2019-01-30 18:58:44 +010047#define USER_LED GPIO(GPIO_PORTC, 26)
Kévin Redon69b92d92019-01-24 16:39:20 +010048
49#endif // ATMEL_START_PINS_H_INCLUDED