2013-11-28 12:57:41 +01:00
|
|
|
/*
|
2014-05-15 18:07:02 +02:00
|
|
|
* Copyright (C) 2013 Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
|
2013-03-06 12:19:15 +01:00
|
|
|
*
|
2014-08-27 18:47:31 +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
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup boards_native Native Board
|
|
|
|
* @ingroup boards
|
|
|
|
* @brief Board emulation for the native port
|
|
|
|
*
|
|
|
|
* The native board uses call level hardware simulation
|
2013-03-06 12:19:15 +01:00
|
|
|
*
|
|
|
|
* @{
|
2013-11-28 12:57:41 +01:00
|
|
|
*
|
2014-10-21 16:52:30 +02:00
|
|
|
* @file
|
2013-11-28 12:57:41 +01:00
|
|
|
* @brief Basic definitions for the native board
|
|
|
|
*
|
|
|
|
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
|
2013-03-06 12:19:15 +01:00
|
|
|
*/
|
|
|
|
|
2013-11-28 12:57:41 +01:00
|
|
|
#ifndef BOARD_H
|
|
|
|
#define BOARD_H
|
|
|
|
|
2013-10-28 23:01:45 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2014-03-25 18:55:27 +01:00
|
|
|
#define F_CPU 1000000
|
|
|
|
|
2013-08-15 23:51:49 +02:00
|
|
|
void _native_LED_GREEN_OFF(void);
|
|
|
|
#define LED_GREEN_OFF (_native_LED_GREEN_OFF())
|
|
|
|
void _native_LED_GREEN_ON(void);
|
|
|
|
#define LED_GREEN_ON (_native_LED_GREEN_ON())
|
|
|
|
void _native_LED_GREEN_TOGGLE(void);
|
|
|
|
#define LED_GREEN_TOGGLE (_native_LED_GREEN_TOGGLE())
|
|
|
|
void _native_LED_RED_OFF(void);
|
|
|
|
#define LED_RED_OFF (_native_LED_RED_OFF())
|
|
|
|
void _native_LED_RED_ON(void);
|
|
|
|
#define LED_RED_ON (_native_LED_RED_ON())
|
|
|
|
void _native_LED_RED_TOGGLE(void);
|
|
|
|
#define LED_RED_TOGGLE (_native_LED_RED_TOGGLE())
|
2013-10-20 17:54:31 +02:00
|
|
|
|
2014-10-30 17:47:26 +01:00
|
|
|
/**
|
|
|
|
* @brief Boards has a radio
|
|
|
|
*/
|
|
|
|
#define HAS_RADIO
|
|
|
|
|
2013-10-20 17:54:31 +02:00
|
|
|
typedef uint16_t radio_packet_length_t;
|
2013-11-28 12:57:41 +01:00
|
|
|
|
|
|
|
/** @} */
|
2013-10-29 16:34:59 +01:00
|
|
|
#endif /* BOARD_H */
|