atmel_start_pins.h
1 /* 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 // SAMD21 has 8 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 24 #define PA02 GPIO(GPIO_PORTA, 2) 25 #define PA03 GPIO(GPIO_PORTA, 3) 26 #define PA04 GPIO(GPIO_PORTA, 4) 27 #define PA05 GPIO(GPIO_PORTA, 5) 28 #define PA06 GPIO(GPIO_PORTA, 6) 29 #define PA07 GPIO(GPIO_PORTA, 7) 30 #define PA08 GPIO(GPIO_PORTA, 8) 31 #define PA09 GPIO(GPIO_PORTA, 9) 32 #define PA10 GPIO(GPIO_PORTA, 10) 33 #define PA11 GPIO(GPIO_PORTA, 11) 34 #define PA13 GPIO(GPIO_PORTA, 13) 35 #define PA14 GPIO(GPIO_PORTA, 14) 36 #define PA15 GPIO(GPIO_PORTA, 15) 37 #define PA16 GPIO(GPIO_PORTA, 16) 38 #define PA17 GPIO(GPIO_PORTA, 17) 39 #define PA18 GPIO(GPIO_PORTA, 18) 40 #define PA19 GPIO(GPIO_PORTA, 19) 41 #define PA20 GPIO(GPIO_PORTA, 20) 42 #define PA22 GPIO(GPIO_PORTA, 22) 43 #define PA23 GPIO(GPIO_PORTA, 23) 44 #define PA24 GPIO(GPIO_PORTA, 24) 45 #define PA25 GPIO(GPIO_PORTA, 25) 46 #define PA27 GPIO(GPIO_PORTA, 27) 47 #define PA28 GPIO(GPIO_PORTA, 28) 48 #define PA30 GPIO(GPIO_PORTA, 30) 49 #define PA31 GPIO(GPIO_PORTA, 31) 50 #define PB02 GPIO(GPIO_PORTB, 2) 51 #define PB03 GPIO(GPIO_PORTB, 3) 52 #define PB08 GPIO(GPIO_PORTB, 8) 53 #define PB09 GPIO(GPIO_PORTB, 9) 54 #define PB22 GPIO(GPIO_PORTB, 22) 55 #define PB23 GPIO(GPIO_PORTB, 23) 56 57 #endif // ATMEL_START_PINS_H_INCLUDED