1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #1915 from OlegHahm/replace_has_radio_by_feature

make: replace has radio by feature
This commit is contained in:
Oleg Hahm 2014-10-30 23:29:49 +01:00
commit 62006b6f34
16 changed files with 3 additions and 69 deletions

View File

@ -45,11 +45,6 @@
#define SYSLOG_CONF_NUM_INTERFACES 1
#endif
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
void init_clks1(void);
typedef uint8_t radio_packet_length_t;

View File

@ -34,11 +34,6 @@
#define MSP430_HAS_DCOR 1
#define MSP430_HAS_EXTERNAL_CRYSTAL 1
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
#endif // _MSB_BOARD_H

View File

@ -106,11 +106,6 @@
#define LED_ORANGE_TOGGLE (LED_ORANGE_PORT->ODR ^= (1<<LED_ORANGE_PIN))
/** @} */
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
/**
* Define the type for the radio packet length for the transceiver
*/

View File

@ -34,11 +34,6 @@
#define LED_OFF(led_nr) (LPC_GPIO1->FIOCLR = PIN_LED##led_nr)
#define LED_TOGGLE(led_nr) (LPC_GPIO1->FIOPIN ^= PIN_LED##led_nr)
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/**

View File

@ -53,11 +53,6 @@
#include "board-conf.h"
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

View File

@ -46,11 +46,6 @@
#include "board-conf.h"
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

View File

@ -35,11 +35,6 @@
#define LED_RED_ON (FIO3CLR = LED_RED_PIN)
#define LED_RED_TOGGLE (FIO3PIN ^= LED_RED_PIN)
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
void init_clks1(void);
typedef uint8_t radio_packet_length_t;

View File

@ -41,11 +41,6 @@ void _native_LED_RED_ON(void);
void _native_LED_RED_TOGGLE(void);
#define LED_RED_TOGGLE (_native_LED_RED_TOGGLE())
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint16_t radio_packet_length_t;
/** @} */

View File

@ -20,11 +20,6 @@
#define VICIntEnClear VICIntEnClr
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
void init_clks1(void);
void init_clks2(void);
void bl_init_clks(void);

View File

@ -29,11 +29,6 @@
#define IBIAS 0x1f
#define FTUNE 0x7
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
#endif

View File

@ -58,10 +58,6 @@
#include <stdint.h>
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

View File

@ -60,10 +60,6 @@
#include <msp430x16x.h>
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

View File

@ -60,10 +60,6 @@
#include <msp430x16x.h>
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

View File

@ -72,10 +72,6 @@
#define USER_BTN_PRESSED ((USER_BTN_PxIN & USER_BTN_MASK) == 0)
#define USER_BTN_RELEASED ((USER_BTN_PxIN & USER_BTN_MASK) != 0)
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

View File

@ -20,7 +20,7 @@
config_t sysconfig = {
0, /**< default ID */
#ifdef HAS_RADIO
#ifdef FEATURE_TRANSCEIVER
0, /**< default radio address */
0, /**< default radio channel */
#endif

View File

@ -20,7 +20,7 @@
#define CONFIG_H
#include <stdint.h>
#ifdef HAS_RADIO
#ifdef FEATURE_TRANSCEIVER
#include "radio/types.h"
#endif
@ -42,7 +42,7 @@ extern char configmem[];
typedef struct {
/* cppcheck-suppress unusedStructMember : is used in sys/shell/commands/sc_id.c */
uint16_t id; /**< unique node identifier */
#ifdef HAS_RADIO
#ifdef FEATURE_TRANSCEIVER
radio_address_t radio_address; /**< address for radio communication */
uint8_t radio_channel; /**< current frequency */
#endif