mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 05:37:04 +08:00
* Microchip SAM MCU BSP update and add ethernet driver 1. Update Microchip SAM MCU BSP, add I2C, GMAC, ADC driver support. 2. Add ethernet driver support of SAM MCU for RT-Thread. * Add GMAC and I2C driver support 1. Update MCU BSP to support I2C/ADC/GMAC peripherals. 2. Add I2C and ethernet driver and LWIP support. 3. Update serial driver. * Add I2C driver and move some files to the common folder 1. Add I2C driver. 2. Move the same drivers and demo code to same folder to reduce duplicated code.
41 lines
1.1 KiB
C
41 lines
1.1 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>
|
|
|
|
// SAME70 has 4 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 PA3 GPIO(GPIO_PORTA, 3)
|
|
#define PA4 GPIO(GPIO_PORTA, 4)
|
|
#define SW0 GPIO(GPIO_PORTA, 11)
|
|
#define PA21 GPIO(GPIO_PORTA, 21)
|
|
#define PB0 GPIO(GPIO_PORTB, 0)
|
|
#define PB4 GPIO(GPIO_PORTB, 4)
|
|
#define LED0 GPIO(GPIO_PORTC, 8)
|
|
#define PC12 GPIO(GPIO_PORTC, 12)
|
|
#define PC14 GPIO(GPIO_PORTC, 14)
|
|
#define PD0 GPIO(GPIO_PORTD, 0)
|
|
#define PD1 GPIO(GPIO_PORTD, 1)
|
|
#define PD2 GPIO(GPIO_PORTD, 2)
|
|
#define PD3 GPIO(GPIO_PORTD, 3)
|
|
#define PD4 GPIO(GPIO_PORTD, 4)
|
|
#define PD5 GPIO(GPIO_PORTD, 5)
|
|
#define PD6 GPIO(GPIO_PORTD, 6)
|
|
#define PD7 GPIO(GPIO_PORTD, 7)
|
|
#define PD8 GPIO(GPIO_PORTD, 8)
|
|
#define PD9 GPIO(GPIO_PORTD, 9)
|
|
|
|
#endif // ATMEL_START_PINS_H_INCLUDED
|