/* * 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 // 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 PA08 GPIO(GPIO_PORTA, 8) #define PA09 GPIO(GPIO_PORTA, 9) #define PA10 GPIO(GPIO_PORTA, 10) #define PA11 GPIO(GPIO_PORTA, 11) #define PA20 GPIO(GPIO_PORTA, 20) #define PA21 GPIO(GPIO_PORTA, 21) #define PA24 GPIO(GPIO_PORTA, 24) #define PA25 GPIO(GPIO_PORTA, 25) #define PB10 GPIO(GPIO_PORTB, 10) #define PB11 GPIO(GPIO_PORTB, 11) #define PB12 GPIO(GPIO_PORTB, 12) #define PB13 GPIO(GPIO_PORTB, 13) #define PB18 GPIO(GPIO_PORTB, 18) #define PB19 GPIO(GPIO_PORTB, 19) #define PB20 GPIO(GPIO_PORTB, 20) #define PB21 GPIO(GPIO_PORTB, 21) #define PB26 GPIO(GPIO_PORTB, 26) #define PB27 GPIO(GPIO_PORTB, 27) #define PB28 GPIO(GPIO_PORTB, 28) #define PB29 GPIO(GPIO_PORTB, 29) #define PB31 GPIO(GPIO_PORTB, 31) #define SPI_CS PB28 #define SPI_CS_PIN GPIO_PIN(SPI_CS) #define SPI_CS_PORT GPIO_PORT(SPI_CS) #define SPI_CD PB31 #endif // ATMEL_START_PINS_H_INCLUDED