summaryrefslogtreecommitdiff
path: root/keyboards/40percentclub/ut47/ut47.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-12-15 22:00:39 +1100
committerGitHub <noreply@github.com>2021-12-15 11:00:39 +0000
commitc12268807d8622a05dc445e6101a575eae16860d (patch)
treeaa9c32aac0a35235143c012ca1d021fe43b0c818 /keyboards/40percentclub/ut47/ut47.c
parentc0bb15315170f9265143833ad879b7c8f87b06ac (diff)
Migrate serial_uart usages to UART driver (#15479)
* Migrate Thermal Printer feature to UART driver * Migrate 40percentclub UT47 to UART driver * Migrate Centromere to UART driver * Migrate Chimera Ergo to UART driver * Migrate Chimera Let's Split to UART driver * Migrate Chimera Ortho to UART driver * Migrate Chimera Ortho Plus to UART driver * Migrate Comet46 to UART driver * Migrate Palm USB converter to UART driver * Migrate Sun USB converter to UART driver * Migrate Dichotomy to UART driver * Migrate Honeycomb to UART driver * Migrate Mitosis to UART driver * Migrate Redox W to UART driver * Migrate Uni660 to UART driver * Migrate Telophase to UART driver
Diffstat (limited to 'keyboards/40percentclub/ut47/ut47.c')
-rw-r--r--keyboards/40percentclub/ut47/ut47.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/40percentclub/ut47/ut47.c b/keyboards/40percentclub/ut47/ut47.c
index 9054335e5a..c01562cb68 100644
--- a/keyboards/40percentclub/ut47/ut47.c
+++ b/keyboards/40percentclub/ut47/ut47.c
@@ -15,15 +15,19 @@
*/
#include "ut47.h"
#ifdef LED_ENABLE
- #include "protocol/serial.h"
+ #include "uart.h"
#endif
+void matrix_init_kb() {
+ uart_init(9600);
+}
+
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
if (record->event.pressed) {
#ifdef LED_ENABLE
- serial_send((record->event.key.row*16)+record->event.key.col);
+ uart_write((record->event.key.row*16)+record->event.key.col);
#endif
}
return process_record_user(keycode, record);