2013-08-19 16:17:58 +02:00
|
|
|
/*
|
2013-11-28 12:57:41 +01:00
|
|
|
* Copyright (C) 2013 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
|
|
|
|
*
|
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.
|
2013-11-28 12:57:41 +01:00
|
|
|
*
|
|
|
|
*/
|
2013-08-19 16:17:58 +02:00
|
|
|
|
2013-08-07 12:20:53 +02:00
|
|
|
/**
|
2018-07-26 11:59:14 +02:00
|
|
|
* @ingroup boards_avsextrem
|
2013-11-28 12:57:41 +01:00
|
|
|
* @{
|
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2014-05-24 15:03:06 +02:00
|
|
|
* @brief Boards specific drivers and configuration for the Avsextrem board
|
2013-08-07 12:20:53 +02:00
|
|
|
*
|
2013-09-19 16:53:35 +02:00
|
|
|
* @author Heiko Will
|
2013-08-19 16:17:58 +02:00
|
|
|
* @author Zakaria Kasmi
|
2013-08-07 12:20:53 +02:00
|
|
|
*/
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
2019-11-16 11:57:15 +01:00
|
|
|
|
2020-07-16 16:25:03 +02:00
|
|
|
#include "lpc23xx.h"
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "bitarithm.h"
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-08-06 12:58:08 +02:00
|
|
|
/**
|
2017-04-10 19:04:32 +02:00
|
|
|
* @name LED pin definitions and handlers
|
2015-08-06 12:58:08 +02:00
|
|
|
* @{
|
|
|
|
*/
|
2016-03-11 17:58:14 +01:00
|
|
|
#define LED0_PIN GPIO_PIN(2, 25)
|
|
|
|
#define LED1_PIN GPIO_PIN(2, 26)
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2016-03-11 17:58:14 +01:00
|
|
|
#define LED0_MASK (BIT25)
|
|
|
|
#define LED1_MASK (BIT26)
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2016-03-11 17:58:14 +01:00
|
|
|
#define LED0_OFF (FIO3SET = LED0_MASK)
|
|
|
|
#define LED0_ON (FIO3CLR = LED0_MASK)
|
|
|
|
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
|
|
|
|
|
|
|
|
#define LED1_OFF (FIO3SET = LED1_MASK)
|
|
|
|
#define LED1_ON (FIO3CLR = LED1_MASK)
|
|
|
|
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
|
2015-08-06 12:58:08 +02:00
|
|
|
/** @} */
|
2013-08-07 12:20:53 +02:00
|
|
|
|
2014-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-08-07 12:20:53 +02:00
|
|
|
/** @} */
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* BOARD_H */
|