summaryrefslogtreecommitdiff
path: root/gm_platform/fw/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'gm_platform/fw/serial.h')
-rw-r--r--gm_platform/fw/serial.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm_platform/fw/serial.h b/gm_platform/fw/serial.h
index 55eac9e..c10393a 100644
--- a/gm_platform/fw/serial.h
+++ b/gm_platform/fw/serial.h
@@ -31,14 +31,15 @@ struct dma_tx_buf {
size_t xfr_start; /* Start index of running DMA transfer */
size_t xfr_end; /* End index of running DMA transfer plus one */
size_t wr_pos; /* Next index to be written */
- uint8_t data[256];
+ uint8_t data[512];
+ size_t packet_starts[5];
};
extern volatile struct dma_tx_buf usart_tx_buf;
void usart_dma_init(void);
int usart_dma_fifo_push(volatile struct dma_tx_buf *buf, char c);
-void usart_putc(char c);
void usart_send_packet(const uint8_t *data, size_t len);
+int usart_send_packet_nonblocking(const uint8_t *data, size_t len);
#endif // __SERIAL_H__