diff options
author | jaseg <git@jaseg.net> | 2020-01-25 11:53:44 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-01-25 11:53:44 +0100 |
commit | 966f104597275b29f41c06c4574d1bbe9ecde401 (patch) | |
tree | 56224782459e8b7983df5605809c7269539a7cb1 /gm_platform/fw/serial.h | |
parent | 410e38651052038e34843b17269d61e75720f0ba (diff) | |
download | master-thesis-966f104597275b29f41c06c4574d1bbe9ecde401.tar.gz master-thesis-966f104597275b29f41c06c4574d1bbe9ecde401.tar.bz2 master-thesis-966f104597275b29f41c06c4574d1bbe9ecde401.zip |
serial wip
Diffstat (limited to 'gm_platform/fw/serial.h')
-rw-r--r-- | gm_platform/fw/serial.h | 5 |
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__
|