Skip to content

Commit 6060a1d

Browse files
Update API ver. Add Keyboard Quantizer B
1 parent e094649 commit 6060a1d

33 files changed

+2536
-175
lines changed

drivers/nrf52/uart.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
#pragma once
3+
4+
#include <stdint.h>
5+
#include <stdbool.h>
6+
7+
void uart_init(uint32_t baud);
8+
9+
void uart_putchar(uint8_t c);
10+
11+
uint8_t uart_getchar(void);
12+
13+
bool uart_available(void);

keyboards/keyboard_quantizer/bmp/bmp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ uint32_t qt_get_device_col() { return MATRIX_COLS_DEFAULT; }
8888
uint32_t qt_matrix_scan(matrix_row_t *matrix_raw) {
8989
bool changed = process_packet(matrix_raw);
9090

91+
uart_flush_rx_buffer();
92+
9193
return changed ? 1 : 0;
9294
}
9395

0 commit comments

Comments
 (0)