50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
/*
|
|
* Code generated from Atmel Start.
|
|
*
|
|
* This file will be overwritten when reconfiguring your Atmel Start project.
|
|
* Please copy examples or other code you want to keep to a separate file
|
|
* to avoid losing it when reconfiguring.
|
|
*/
|
|
#ifndef ATMEL_START_PINS_H_INCLUDED
|
|
#define ATMEL_START_PINS_H_INCLUDED
|
|
|
|
#include <hal_gpio.h>
|
|
|
|
// SAME54 has 14 pin functions
|
|
|
|
#define GPIO_PIN_FUNCTION_A 0
|
|
#define GPIO_PIN_FUNCTION_B 1
|
|
#define GPIO_PIN_FUNCTION_C 2
|
|
#define GPIO_PIN_FUNCTION_D 3
|
|
#define GPIO_PIN_FUNCTION_E 4
|
|
#define GPIO_PIN_FUNCTION_F 5
|
|
#define GPIO_PIN_FUNCTION_G 6
|
|
#define GPIO_PIN_FUNCTION_H 7
|
|
#define GPIO_PIN_FUNCTION_I 8
|
|
#define GPIO_PIN_FUNCTION_J 9
|
|
#define GPIO_PIN_FUNCTION_K 10
|
|
#define GPIO_PIN_FUNCTION_L 11
|
|
#define GPIO_PIN_FUNCTION_M 12
|
|
#define GPIO_PIN_FUNCTION_N 13
|
|
|
|
#define PA02 GPIO(GPIO_PORTA, 2)
|
|
#define PA12 GPIO(GPIO_PORTA, 12)
|
|
#define PA13 GPIO(GPIO_PORTA, 13)
|
|
#define PA14 GPIO(GPIO_PORTA, 14)
|
|
#define PA15 GPIO(GPIO_PORTA, 15)
|
|
#define PA17 GPIO(GPIO_PORTA, 17)
|
|
#define PA18 GPIO(GPIO_PORTA, 18)
|
|
#define PA19 GPIO(GPIO_PORTA, 19)
|
|
#define PB12 GPIO(GPIO_PORTB, 12)
|
|
#define PB13 GPIO(GPIO_PORTB, 13)
|
|
#define PB24 GPIO(GPIO_PORTB, 24)
|
|
#define PB25 GPIO(GPIO_PORTB, 25)
|
|
#define PC11 GPIO(GPIO_PORTC, 11)
|
|
#define PC12 GPIO(GPIO_PORTC, 12)
|
|
#define LED0 GPIO(GPIO_PORTC, 18)
|
|
#define PC20 GPIO(GPIO_PORTC, 20)
|
|
#define PD08 GPIO(GPIO_PORTD, 8)
|
|
#define PD09 GPIO(GPIO_PORTD, 9)
|
|
|
|
#endif // ATMEL_START_PINS_H_INCLUDED
|