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
This commit is contained in:
parent
c0bb153151
commit
c12268807d
63 changed files with 154 additions and 393 deletions
|
@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "protocol/serial.h"
|
||||
#include "uart.h"
|
||||
#include "timer.h"
|
||||
|
||||
|
||||
|
@ -164,7 +164,7 @@ uint8_t rts_reset(void) {
|
|||
uint8_t get_serial_byte(void) {
|
||||
static uint8_t code;
|
||||
while(1) {
|
||||
code = serial_recv();
|
||||
code = uart_read();
|
||||
if (code) {
|
||||
debug_hex(code); debug(" ");
|
||||
return code;
|
||||
|
@ -240,7 +240,7 @@ void matrix_init(void)
|
|||
debug_enable = true;
|
||||
//debug_matrix =true;
|
||||
|
||||
serial_init(); // arguments all #defined
|
||||
uart_init(9600); // arguments all #defined
|
||||
|
||||
#if (HANDSPRING == 0)
|
||||
pins_init(); // set all inputs and outputs.
|
||||
|
@ -290,7 +290,7 @@ void matrix_init(void)
|
|||
uint8_t matrix_scan(void)
|
||||
{
|
||||
uint8_t code;
|
||||
code = serial_recv();
|
||||
code = uart_read();
|
||||
if (!code) {
|
||||
/*
|
||||
disconnect_counter ++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue