Commit 1c8366d4 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

add define to change default IPI for LWB

parent 279a21c4
......@@ -129,7 +129,7 @@
/* slack time for schedule computation, in ticks */
#ifndef LWB_SCHED_COMP_TIME
#define LWB_SCHED_COMP_TIME (LWB_TIMER_FREQUENCY / 50) /* 20ms */
#define LWB_SCHED_COMP_TIME (LWB_TIMER_FREQUENCY / 50) /* 20ms */
#endif /* LWB_SCHED_COMP_TIME */
/* append CRC to the schedule? */
......@@ -161,6 +161,11 @@
#define LWB_USE_TX_DELAY 0
#endif /* LWB_USE_TX_DELAY */
/* Default IPI, used for the nodes included in LWB_SCHED_NODE_LIST */
#ifndef LWB_SCHED_DEFAULT_IPI
#define LWB_SCHED_DEFAULT_IPI LWB_SCHED_PERIOD /* add 1 slot per node and round by default */
#endif /* LWB_SCHED_DEFAULT_IPI */
/* --------------- END OF CONFIG, do not change values below --------------- */
......
......@@ -298,7 +298,7 @@ uint32_t lwb_sched_init(lwb_schedule_t* sched)
const uint16_t node_ids[] = { LWB_SCHED_NODE_LIST };
uint32_t i;
for (i = 0; i < sizeof(node_ids) / 2; i++) {
lwb_sched_process_req(node_ids[i], LWB_TICKS_TO_S(base_period)); /* add one slot per node and round by default */
lwb_sched_process_req(node_ids[i], LWB_SCHED_DEFAULT_IPI);
}
#endif /* LWB_SCHED_NODE_LIST */
......
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