1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/avsextrem/include/board.h

56 lines
1.1 KiB
C
Raw Normal View History

2013-08-19 16:17:58 +02: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-08-19 16:17:58 +02:00
/**
2018-07-26 11:59:14 +02:00
* @ingroup boards_avsextrem
* @{
*
* @file
* @brief Boards specific drivers and configuration for the Avsextrem board
*
2013-09-19 16:53:35 +02:00
* @author Heiko Will
2013-08-19 16:17:58 +02:00
* @author Zakaria Kasmi
*/
#ifndef BOARD_H
#define BOARD_H
#include "lpc23xx.h"
2013-12-16 17:54:58 +01:00
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name LED pin definitions and handlers
* @{
*/
2016-03-11 17:58:14 +01:00
#define LED0_PIN GPIO_PIN(2, 25)
#define LED1_PIN GPIO_PIN(2, 26)
2016-03-11 17:58:14 +01:00
#define LED0_MASK (BIT25)
#define LED1_MASK (BIT26)
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)
/** @} */
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* BOARD_H */