2011-07-11 01:51:24 +02:00
|
|
|
#ifndef _VARIANT_
|
|
|
|
#define _VARIANT_
|
2011-06-01 01:54:47 +02:00
|
|
|
|
2011-06-21 00:48:47 +02:00
|
|
|
/*----------------------------------------------------------------------------
|
|
|
|
* Headers
|
|
|
|
*----------------------------------------------------------------------------*/
|
2011-06-01 01:54:47 +02:00
|
|
|
|
2011-06-21 00:48:47 +02:00
|
|
|
#include "libsam/chip.h"
|
2011-06-01 01:54:47 +02:00
|
|
|
|
2011-06-21 00:48:47 +02:00
|
|
|
/**
|
|
|
|
* Libc porting layers
|
|
|
|
*/
|
|
|
|
#if defined ( __GNUC__ ) /* GCC CS3 */
|
2011-07-11 01:51:24 +02:00
|
|
|
# include <syscalls.h> /** RedHat Newlib minimal stub */
|
2011-06-01 01:54:47 +02:00
|
|
|
#endif
|
|
|
|
|
2011-06-21 00:48:47 +02:00
|
|
|
/*----------------------------------------------------------------------------
|
|
|
|
* Definitions
|
|
|
|
*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/** Name of the board */
|
2011-07-11 01:51:24 +02:00
|
|
|
#define VARIANT_NAME "SAM3S-EK"
|
2011-06-21 00:48:47 +02:00
|
|
|
|
|
|
|
/*
|
2011-07-11 01:51:24 +02:00
|
|
|
#define VARIANT_REV_A
|
2011-06-21 00:48:47 +02:00
|
|
|
*/
|
2011-07-11 01:51:24 +02:00
|
|
|
#define VARIANT_REV_B
|
2011-06-21 00:48:47 +02:00
|
|
|
|
|
|
|
/** Frequency of the board main oscillator */
|
2011-07-11 01:51:24 +02:00
|
|
|
#define VARIANT_MAINOSC 12000000
|
2011-06-21 00:48:47 +02:00
|
|
|
|
2011-07-11 01:51:24 +02:00
|
|
|
/** Master clock frequency */
|
|
|
|
#define VARIANT_MCK 64000000
|
2011-06-21 00:48:47 +02:00
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------
|
2011-07-11 01:51:24 +02:00
|
|
|
* Arduino objects - C++ only
|
2011-06-21 00:48:47 +02:00
|
|
|
*----------------------------------------------------------------------------*/
|
|
|
|
|
2011-07-11 01:51:24 +02:00
|
|
|
# ifdef __cplusplus
|
|
|
|
# include "UART.h"
|
|
|
|
# include "USART.h"
|
|
|
|
|
2011-06-21 00:48:47 +02:00
|
|
|
extern UARTClass Serial1 ;
|
|
|
|
extern UARTClass Serial2 ;
|
|
|
|
|
2011-07-11 01:51:24 +02:00
|
|
|
//extern USARTClass Serial3 ;
|
|
|
|
//extern USARTClass Serial4 ;
|
2011-06-21 00:48:47 +02:00
|
|
|
|
2011-07-11 01:51:24 +02:00
|
|
|
# endif
|
2011-06-21 00:48:47 +02:00
|
|
|
|
2011-07-11 01:51:24 +02:00
|
|
|
#endif /* #ifndef _VARIANT_ */
|
2011-06-21 00:48:47 +02:00
|
|
|
|