From c12268807d8622a05dc445e6101a575eae16860d Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 15 Dec 2021 22:00:39 +1100 Subject: 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 --- keyboards/40percentclub/ut47/ut47.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'keyboards/40percentclub/ut47/ut47.c') 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); -- cgit v1.2.1 From 9d0b14500754eb8cb60a347f16f854f9d277604f Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 16 Dec 2021 01:25:32 +1100 Subject: Fix build failure for UT47 (#15483) --- keyboards/40percentclub/ut47/ut47.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/40percentclub/ut47/ut47.c') diff --git a/keyboards/40percentclub/ut47/ut47.c b/keyboards/40percentclub/ut47/ut47.c index c01562cb68..864edaeb57 100644 --- a/keyboards/40percentclub/ut47/ut47.c +++ b/keyboards/40percentclub/ut47/ut47.c @@ -16,11 +16,11 @@ #include "ut47.h" #ifdef LED_ENABLE #include "uart.h" -#endif void matrix_init_kb() { uart_init(9600); } +#endif bool process_record_kb(uint16_t keycode, keyrecord_t *record) { // put your per-action keyboard code here -- cgit v1.2.1