TSCH: put tsch_ prefix to definitions in the global scope
struct asn_t -> struct tsch_asn_t struct asn_divisor_t -> tsch_asn_divisor_t ASN_ macros -> TSCH_ASN_ macros current_asn -> tsch_current_asn
This commit is contained in:
parent
7d9134757f
commit
667dd6a210
14 changed files with 67 additions and 66 deletions
|
@ -201,7 +201,7 @@ PROCESS_THREAD(node_process, ev, data)
|
|||
if (host_found) {
|
||||
/* Make sample count dependent on asn. After a disconnect, waveforms remain
|
||||
synchronous. Use node_mac to create phase offset between waveforms in different nodes */
|
||||
sample_count = ((current_asn.ls4b/((1000/(TSCH_CONF_DEFAULT_TIMESLOT_LENGTH/1000)))/INTERVAL)+node_mac[7]) % (SIZE_OF_WAVEFORM-1);
|
||||
sample_count = ((tsch_current_asn.ls4b/((1000/(TSCH_CONF_DEFAULT_TIMESLOT_LENGTH/1000)))/INTERVAL)+node_mac[7]) % (SIZE_OF_WAVEFORM-1);
|
||||
printf("%d sec. waveform=%s. cnt=%d. value=%d\n", total_time, waveform_table[selected_waveform].str, sample_count, waveform_table[selected_waveform].table[sample_count]);
|
||||
my_sprintf(udp_buf, waveform_table[selected_waveform].table[sample_count]);
|
||||
uip_udp_packet_send(udp_conn_tx, udp_buf, strlen(udp_buf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue