27 lines
693 B
C
27 lines
693 B
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>
|
|
|
|
// SAMD09 has 7 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_G 5
|
|
#define GPIO_PIN_FUNCTION_H 6
|
|
|
|
#define PIN_ADC GPIO(GPIO_PORTA, 4)
|
|
#define PIN_BUTTON GPIO(GPIO_PORTA, 15)
|
|
|
|
#endif // ATMEL_START_PINS_H_INCLUDED
|