summaryrefslogtreecommitdiff
path: root/src/usart_helpers.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-11-08 19:53:11 +0900
committerjaseg <git@jaseg.net>2018-11-08 19:53:11 +0900
commit21be46a0b5364c5f00f4d081ad9524ae9a36d022 (patch)
tree9a1dc33ea40b88b038c7ef7702cddddf66373a41 /src/usart_helpers.c
parente4e231880413c58215130c4b084ac49a03c16b9b (diff)
downloadsecure-hid-21be46a0b5364c5f00f4d081ad9524ae9a36d022.tar.gz
secure-hid-21be46a0b5364c5f00f4d081ad9524ae9a36d022.tar.bz2
secure-hid-21be46a0b5364c5f00f4d081ad9524ae9a36d022.zip
HID report transmission partially works now
partially i.e. if you attach the keyboard before the noise handshake. I suspect some memory corruption somewhere.
Diffstat (limited to 'src/usart_helpers.c')
-rw-r--r--src/usart_helpers.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/usart_helpers.c b/src/usart_helpers.c
index 493c019..a1f7b4e 100644
--- a/src/usart_helpers.c
+++ b/src/usart_helpers.c
@@ -144,9 +144,3 @@ void flush(void *file) {
nvic_enable_irq(f->irqn);
}
-void send_packet(struct dma_usart_file *f, const uint8_t *data, size_t len) {
- /* ignore return value as putf is blocking and always succeeds */
- (void)cobs_encode_incremental(f, putf, (char *)data, len);
- flush(f);
-}
-