mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
3c0d91720b
This reverts commit 4238f40429
.
48 lines
1.0 KiB
C
48 lines
1.0 KiB
C
/*
|
|
* Copyright 2014 INRIA
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef __BOARD_H
|
|
#define __BOARD_H
|
|
|
|
/**
|
|
* @file
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
*
|
|
* @defgroup mbed_lpc1768 mbed NXP LPC1768 development kit
|
|
* @ingroup boards
|
|
* @brief Support for the mbed NXP LPC1768 board.
|
|
* @{
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include "bitarithm.h"
|
|
|
|
#define F_CPU (96000000)
|
|
|
|
|
|
#define PIN_LED1 (BIT18)
|
|
#define PIN_LED2 (BIT20)
|
|
#define PIN_LED3 (BIT21)
|
|
#define PIN_LED4 (BIT23)
|
|
|
|
#define LED_ON(led_nr) (LPC_GPIO1->FIOSET = PIN_LED##led_nr)
|
|
#define LED_OFF(led_nr) (LPC_GPIO1->FIOCLR = PIN_LED##led_nr)
|
|
#define LED_TOGGLE(led_nr) (LPC_GPIO1->FIOPIN ^= PIN_LED##led_nr)
|
|
|
|
typedef uint8_t radio_packet_length_t;
|
|
|
|
/**
|
|
* @brief Busy waiting function (while hwtimer is not available at boot time)
|
|
*
|
|
* @param[in] t The waiting cycles
|
|
*/
|
|
void loop_delay(uint32_t t);
|
|
|
|
/** @} */
|
|
#endif /* __BOARD_H */
|