2014-05-05 21:38:59 +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-05-05 21:38:59 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-02-12 13:57:37 +01:00
|
|
|
* @defgroup boards_udoo UDOO
|
2014-05-05 21:38:59 +02:00
|
|
|
* @ingroup boards
|
2014-05-24 15:03:06 +02:00
|
|
|
* @brief Support for the UDOO board.
|
2014-05-05 21:38:59 +02:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2014-05-05 21:38:59 +02:00
|
|
|
* @brief Board specific definitions for the UDOO board.
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
2014-05-05 21:38:59 +02:00
|
|
|
|
|
|
|
#include "cpu.h"
|
2015-05-22 14:31:23 +02:00
|
|
|
#include "cpu_conf.h"
|
2014-05-05 21:38:59 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2014-05-05 21:38:59 +02:00
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name LED pin definitions and handlers
|
2014-05-05 21:38:59 +02:00
|
|
|
* @{
|
|
|
|
*/
|
2016-03-11 18:04:27 +01:00
|
|
|
#define LED0_PIN GPIO_PIN(PB, 27)
|
2014-05-05 21:38:59 +02:00
|
|
|
|
2016-03-11 18:04:27 +01:00
|
|
|
#define LED_PORT PIOB
|
|
|
|
#define LED0_MASK PIO_PB27
|
2014-05-05 21:38:59 +02:00
|
|
|
|
2016-03-31 00:40:40 +02:00
|
|
|
#define LED0_ON (LED_PORT->PIO_SODR = LED0_MASK)
|
|
|
|
#define LED0_OFF (LED_PORT->PIO_CODR = LED0_MASK)
|
|
|
|
#define LED0_TOGGLE (LED_PORT->PIO_ODSR ^= LED0_MASK)
|
2014-05-05 21:38:59 +02:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
2014-05-05 21:38:59 +02:00
|
|
|
*/
|
|
|
|
void board_init(void);
|
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2014-05-05 21:38:59 +02:00
|
|
|
|
2017-01-18 13:00:05 +01:00
|
|
|
#endif /* BOARD_H */
|
2014-05-05 21:38:59 +02:00
|
|
|
/** @} */
|