2014-04-17 19:35:40 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
2014-08-23 15:43:13 +02:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
2014-04-17 19:35:40 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-02-12 13:33:59 +01:00
|
|
|
* @defgroup boards_arduino-due Arduino Due
|
2014-04-17 19:35:40 +02:00
|
|
|
* @ingroup boards
|
2014-05-24 15:03:06 +02:00
|
|
|
* @brief Support for the Arduino Due board.
|
2014-04-17 19:35:40 +02:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2014-04-17 19:35:40 +02:00
|
|
|
* @brief Board specific definitions for the Arduino Due board.
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
2015-04-23 05:00:54 +02:00
|
|
|
#ifndef BOARD_H_
|
|
|
|
#define BOARD_H_
|
2014-04-17 19:35:40 +02:00
|
|
|
|
|
|
|
#include "cpu.h"
|
2015-11-19 14:05:24 +01:00
|
|
|
#include "arduino_pinmap.h"
|
2014-04-17 19:35:40 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-04-17 19:35:40 +02:00
|
|
|
/**
|
|
|
|
* @name LED pin definitions
|
|
|
|
* @{
|
|
|
|
*/
|
2016-03-11 17:57:38 +01:00
|
|
|
#define LED0_PIN GPIO_PIN(PB, 27)
|
2014-04-17 19:35:40 +02:00
|
|
|
|
2016-03-11 17:57:38 +01:00
|
|
|
#define LED0_ON (PIOB->PIO_SODR = PIO_PB27)
|
|
|
|
#define LED0_OFF (PIOB->PIO_CODR = PIO_PB27)
|
|
|
|
#define LED0_TOGGLE (PIOB->PIO_ODSR ^= PIO_PB27)
|
2014-04-17 19:35:40 +02:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
|
|
|
*/
|
|
|
|
void board_init(void);
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-05-26 22:03:40 +02:00
|
|
|
#endif /* BOARD_H_ */
|
2014-04-17 19:35:40 +02:00
|
|
|
/** @} */
|