boards: introduced a HAS_RADIO define

dev/timer
Oleg Hahm 9 years ago
parent 922b2d758f
commit 4238f40429

@ -45,6 +45,11 @@
#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,6 +34,11 @@
#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

@ -98,6 +98,11 @@
#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
*/

@ -26,6 +26,11 @@
#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,6 +53,11 @@
#include "board-conf.h"
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
/** @} */

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

@ -35,6 +35,11 @@
#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,6 +41,11 @@ 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,6 +20,11 @@
#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,6 +29,11 @@
#define IBIAS 0x1f
#define FTUNE 0x7
/**
* @brief Boards has a radio
*/
#define HAS_RADIO
typedef uint8_t radio_packet_length_t;
#endif

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

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

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

@ -72,6 +72,10 @@
#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;
/** @} */

Loading…
Cancel
Save