mirror of
https://github.com/esp8266/Arduino.git
synced 2025-10-21 08:47:48 +03:00
[sam] daily commit: EWARM project working, GCC compiling but fail due to missing match for Reset_Handler
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/*
|
||||
%atmel_license%
|
||||
*/
|
||||
|
||||
#ifndef _VARIANT_
|
||||
#define _VARIANT_
|
||||
|
||||
@@ -5,7 +9,9 @@
|
||||
* Headers
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "libsam/chip.h"
|
||||
#include "Arduino.h"
|
||||
#include "common/UART.h"
|
||||
#include "common/USART.h"
|
||||
|
||||
/**
|
||||
* Libc porting layers
|
||||
@@ -27,10 +33,10 @@
|
||||
/** Name of the board */
|
||||
#define VARIANT_NAME "SAM3S-EK"
|
||||
|
||||
#define VARIANT_REV_A
|
||||
/*
|
||||
#define VARIANT_REV_B
|
||||
#define VARIANT_REV_A
|
||||
*/
|
||||
#define VARIANT_REV_B
|
||||
|
||||
/** Frequency of the board main oscillator */
|
||||
#define VARIANT_MAINOSC 12000000
|
||||
@@ -38,23 +44,49 @@
|
||||
/** Master clock frequency */
|
||||
#define VARIANT_MCK 64000000
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Pins
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#define PIN_LED_BLUE (0u)
|
||||
#define PIN_LED_GREEN (1u)
|
||||
#define PIN_LED_RED (2u)
|
||||
#define PIN_LED PIN_LED_BLUE
|
||||
|
||||
#define PIN_DAC0 (u)
|
||||
|
||||
static const uint8_t SS = 34 ;
|
||||
static const uint8_t MOSI = 32 ;
|
||||
static const uint8_t MISO = 31 ;
|
||||
static const uint8_t SCK = 33 ;
|
||||
|
||||
#define PINS_UART (16u)
|
||||
|
||||
#if defined VARIANT_REV_A
|
||||
# define PIN_TSC_IRQ_WUP_ID (1UL << 3)
|
||||
#elif defined VARIANT_REV_B
|
||||
# define PIN_TSC_IRQ_WUP_ID (1UL << 15)
|
||||
#else
|
||||
#error "No board revision defined"
|
||||
#endif
|
||||
|
||||
#define BOARD_LCD_PINS PIN_EBI_DATA_BUS, PIN_EBI_NRD, PIN_EBI_NWE, PIN_EBI_NCS1, PIN_EBI_LCD_RS
|
||||
#define BOARD_LCD_BASE 0x61000000 /** Define ILI9325 base address. */
|
||||
#define BOARD_LCD_RS (1 << 1) /** Define ILI9325 register select signal. */
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Arduino objects - C++ only
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
# ifdef __cplusplus
|
||||
#if 0
|
||||
# include "UART.h"
|
||||
# include "USART.h"
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern UARTClass Serial1 ;
|
||||
extern UARTClass Serial ;
|
||||
extern UARTClass Serial2 ;
|
||||
#endif // 0
|
||||
|
||||
//extern USARTClass Serial3 ;
|
||||
//extern USARTClass Serial4 ;
|
||||
extern USARTClass Serial3 ;
|
||||
extern USARTClass Serial4 ;
|
||||
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* #ifndef _VARIANT_ */
|
||||
#endif /* _VARIANT_ */
|
||||
|
||||
|
Reference in New Issue
Block a user