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:
commit
62006b6f34
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -53,11 +53,6 @@
|
||||
|
||||
#include "board-conf.h"
|
||||
|
||||
/**
|
||||
* @brief Boards has a radio
|
||||
*/
|
||||
#define HAS_RADIO
|
||||
|
||||
typedef uint8_t radio_packet_length_t;
|
||||
|
||||
/** @} */
|
||||
|
@ -46,11 +46,6 @@
|
||||
|
||||
#include "board-conf.h"
|
||||
|
||||
/**
|
||||
* @brief Boards has a radio
|
||||
*/
|
||||
#define HAS_RADIO
|
||||
|
||||
typedef uint8_t radio_packet_length_t;
|
||||
|
||||
/** @} */
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
/** @} */
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -58,10 +58,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @brief Boards has a radio
|
||||
*/
|
||||
#define HAS_RADIO
|
||||
typedef uint8_t radio_packet_length_t;
|
||||
|
||||
/** @} */
|
||||
|
@ -60,10 +60,6 @@
|
||||
|
||||
#include <msp430x16x.h>
|
||||
|
||||
/**
|
||||
* @brief Boards has a radio
|
||||
*/
|
||||
#define HAS_RADIO
|
||||
typedef uint8_t radio_packet_length_t;
|
||||
|
||||
/** @} */
|
||||
|
@ -60,10 +60,6 @@
|
||||
|
||||
#include <msp430x16x.h>
|
||||
|
||||
/**
|
||||
* @brief Boards has a radio
|
||||
*/
|
||||
#define HAS_RADIO
|
||||
typedef uint8_t radio_packet_length_t;
|
||||
|
||||
/** @} */
|
||||
|
@ -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;
|
||||
|
||||
/** @} */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user