Add debug event messages
Change devices to 1 and 2
Fix bug in time transmit
Fix return code warning
body.device = serial_device_id;
body.event = event;
- body.world = ltime;
- body.local = wtime;
+ body.world = wtime;
+ body.local = ltime;
// Transmit message to BBB
sirq_write(port, &head, sizeof(head));
//sirq_debug(sirq_mbed);
+ serial_send_event(sirq_bbb, 1, local);
+
#ifdef VERBOSE
sirq_printf("background - %6u.%02u -> %u.%02u\r\n",
(uint32_t)(local / NSEC_PER_SEC),
run: all control install.sh
@./install.sh $(PROG).bin
- @./control $(UART0) 0
- @./control $(UART1) 1 sync
+ @./control $(UART0) 1
+ @./control $(UART1) 2 sync
terms:
term /dev/ttyACM0 &
\r
for (int i = 0; port->dma->dsr & DMA_DSR_BCR_BCR_MASK; i++)\r
if (i > wait)\r
- return 0;\r
+ return;\r
\r
// Disable DMA Mux\r
port->mux->cfg &= DMAMUX_CHCFG_ENBL_MASK;\r