You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
4 years ago
|
/*
|
||
|
* 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>
|
||
|
|
||
|
// SAMD51 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 PA04 GPIO(GPIO_PORTA, 4)
|
||
|
#define PA05 GPIO(GPIO_PORTA, 5)
|
||
|
#define PA06 GPIO(GPIO_PORTA, 6)
|
||
|
#define PA08 GPIO(GPIO_PORTA, 8)
|
||
|
#define PA09 GPIO(GPIO_PORTA, 9)
|
||
|
#define PA16 GPIO(GPIO_PORTA, 16)
|
||
|
#define PA17 GPIO(GPIO_PORTA, 17)
|
||
|
#define PA18 GPIO(GPIO_PORTA, 18)
|
||
|
#define PA22 GPIO(GPIO_PORTA, 22)
|
||
|
#define PA23 GPIO(GPIO_PORTA, 23)
|
||
|
#define PA24 GPIO(GPIO_PORTA, 24)
|
||
|
#define PA25 GPIO(GPIO_PORTA, 25)
|
||
|
|
||
|
#endif // ATMEL_START_PINS_H_INCLUDED
|