jn516x: use IEEE802154_DEFAULT_CHANNEL
This commit is contained in:
parent
8bc3a7388e
commit
2359cdb7c0
@ -40,14 +40,6 @@
|
||||
|
||||
#include "jn516x-def.h"
|
||||
|
||||
#ifdef RF_CHANNEL
|
||||
#define MICROMAC_CONF_CHANNEL RF_CHANNEL
|
||||
#endif
|
||||
|
||||
#ifndef MICROMAC_CONF_CHANNEL
|
||||
#define MICROMAC_CONF_CHANNEL 26
|
||||
#endif
|
||||
|
||||
/* Configure radio driver */
|
||||
#ifndef NETSTACK_CONF_RADIO
|
||||
#define NETSTACK_CONF_RADIO micromac_radio_driver
|
||||
|
@ -100,11 +100,6 @@
|
||||
#define MIRCOMAC_CONF_BUF_NUM 2
|
||||
#endif /* MIRCOMAC_CONF_BUF_NUM */
|
||||
|
||||
/* Init radio channel */
|
||||
#ifndef MICROMAC_CONF_CHANNEL
|
||||
#define MICROMAC_CONF_CHANNEL 26
|
||||
#endif
|
||||
|
||||
/* Default energy level threshold for clear channel detection */
|
||||
#ifndef MICROMAC_CONF_CCA_THR
|
||||
#define MICROMAC_CONF_CCA_THR 39 /* approximately -85 dBm */
|
||||
@ -159,7 +154,7 @@ static uint8_t autoack_enabled = MICROMAC_CONF_AUTOACK;
|
||||
static uint8_t send_on_cca = 0;
|
||||
|
||||
/* Current radio channel */
|
||||
static int current_channel = MICROMAC_CONF_CHANNEL;
|
||||
static int current_channel = IEEE802154_DEFAULT_CHANNEL;
|
||||
|
||||
/* Current set point tx power
|
||||
Actual tx power may be different. Use get_txpower() for actual power */
|
||||
|
@ -72,8 +72,6 @@
|
||||
|
||||
#define IEEE802154_CONF_PANID 0xabcd
|
||||
|
||||
#define MICROMAC_CONF_CHANNEL 26
|
||||
|
||||
/* UART Configuration */
|
||||
|
||||
#define UART_HW_FLOW_CTRL 0
|
||||
|
@ -104,8 +104,6 @@
|
||||
|
||||
#if MAC_CONF_WITH_CSMA /* Configure Csma with ACK (default MAC) */
|
||||
|
||||
#define MICROMAC_CONF_CHANNEL 26
|
||||
|
||||
#define MICROMAC_CONF_AUTOACK 1
|
||||
|
||||
/* increase internal radio buffering */
|
||||
|
Loading…
Reference in New Issue
Block a user