1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Arduino/hardware/sam/variants/sam3s-ek/variant.h

55 lines
1.3 KiB
C
Raw Normal View History

2011-07-11 01:51:24 +02:00
#ifndef _VARIANT_
#define _VARIANT_
2011-06-01 01:54:47 +02:00
/*----------------------------------------------------------------------------
* Headers
*----------------------------------------------------------------------------*/
2011-06-01 01:54:47 +02:00
#include "libsam/chip.h"
2011-06-01 01:54: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
/*----------------------------------------------------------------------------
* Definitions
*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/** Name of the board */
2011-07-11 01:51:24 +02:00
#define VARIANT_NAME "SAM3S-EK"
/*
2011-07-11 01:51:24 +02:00
#define VARIANT_REV_A
*/
2011-07-11 01:51:24 +02:00
#define VARIANT_REV_B
/** Frequency of the board main oscillator */
2011-07-11 01:51:24 +02:00
#define VARIANT_MAINOSC 12000000
2011-07-11 01:51:24 +02:00
/** Master clock frequency */
#define VARIANT_MCK 64000000
/*----------------------------------------------------------------------------
2011-07-11 01:51:24 +02:00
* Arduino objects - C++ only
*----------------------------------------------------------------------------*/
2011-07-11 01:51:24 +02:00
# ifdef __cplusplus
# include "UART.h"
# include "USART.h"
extern UARTClass Serial1 ;
extern UARTClass Serial2 ;
2011-07-11 01:51:24 +02:00
//extern USARTClass Serial3 ;
//extern USARTClass Serial4 ;
2011-07-11 01:51:24 +02:00
# endif
2011-07-11 01:51:24 +02:00
#endif /* #ifndef _VARIANT_ */