Commit 068858a7 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

minor adjustment

parent b8a954fa
......@@ -1051,18 +1051,6 @@ void elwb_start(void)
(uint32_t)ELWB_TICKS_TO_MS(t_cont));
elwb_running = true;
/* instead of calling elwb_run(), schedule the start */
#if ELWB_CONF_STARTUP_DELAY > 0
elwb_time_t starttime = ELWB_MS_TO_TICKS(ELWB_CONF_STARTUP_DELAY);
if (is_host) {
starttime += ELWB_CONF_T_GUARD_ROUND; /* delay the host by ELWB_CONF_T_GUARD_ROUND */
}
if (ELWB_TIMER_NOW() < starttime) {
elwb_wait_until(starttime);
}
#endif /* ELWB_CONF_STARTUP_DELAY */
elwb_run();
}
......
......@@ -140,10 +140,6 @@
#define ELWB_CONF_CONT_TH 1
#endif /* ELWB_CONF_CONT_TH */
#ifndef ELWB_CONF_STARTUP_DELAY
#define ELWB_CONF_STARTUP_DELAY 1000 /* delay in milliseconds from the start of the MCU */
#endif /* ELWB_CONF_STARTUP_DELAY */
/* use more accurate high frequency reference clock to schedule the contention slot
* (requires an implementation of ELWB_GLORIA_GET_T_REF_HF()) */
#ifndef ELWB_CONF_CONT_USE_HSTIMER
......@@ -162,7 +158,7 @@
#define ELWB_SCHED_PERIOD_MAX_S (ULONG_MAX / ELWB_TIMER_FREQUENCY) /* max period in seconds */
#define ELWB_NETWORK_ID_BITMASK 0x7fff
#define ELWB_PKT_TYPE_BITMASK 0x8000
#define ELWB_PKT_BUFFER_SIZE GLORIA_INTERFACE_MAX_PAYLOAD_LEN /* must be at least as large as the gloria interface buffer */
#define ELWB_PKT_BUFFER_SIZE GLORIA_INTERFACE_MAX_PAYLOAD_LEN
#define ELWB_MAX_SCHED_PKT_LEN (ELWB_SCHED_HDR_LEN + ELWB_CONF_MAX_DATA_SLOTS * sizeof(uint16_t) + ELWB_SCHED_CRC_LEN)
#define ELWB_MAX_DATA_PKT_LEN (ELWB_PKT_HDR_LEN + ELWB_CONF_MAX_PAYLOAD_LEN)
#define ELWB_MAX_DACK_PKT_LEN (ELWB_PKT_HDR_LEN + (ELWB_CONF_MAX_DATA_SLOTS + 7) / 8)
......
......@@ -168,7 +168,7 @@
#define LWB_SCHED_CRC_LEN (LWB_SCHED_ADD_CRC ? 2 : 0)
#define LWB_SCHED_PERIOD_MAX_S (ULONG_MAX / LWB_TIMER_FREQUENCY) /* max period in seconds */
#define LWB_NETWORK_ID_BITMASK 0x7fff
#define LWB_PKT_BUFFER_SIZE GLORIA_INTERFACE_MAX_PAYLOAD_LEN /* must be at least as large as the gloria interface buffer */
#define LWB_PKT_BUFFER_SIZE GLORIA_INTERFACE_MAX_PAYLOAD_LEN
#define LWB_TX_DELAY_MASK_SIZE (LWB_USE_TX_DELAY ? ((LWB_MAX_NUM_NODES + 7) / 8) : 0)
#define LWB_DATA_ACK_SIZE (LWB_DATA_ACK ? ((LWB_MAX_DATA_SLOTS + 7) / 8) : 0)
#define LWB_MAX_SCHED_PKT_LEN (LWB_SCHED_HDR_LEN + LWB_MAX_DATA_SLOTS * sizeof(uint16_t) + LWB_SCHED_CRC_LEN)
......
......@@ -391,8 +391,6 @@ void radio_set_config_rxtx(bool lora_mode,
0, // FHSS period
false // iqInverted
);
SX126xSetStopRxTimerOnPreambleDetect(false);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment