Remove legacy print backward compatiblitly (#11805)

* Remove legacy print backward compatiblitly

* Remove legacy print backward compatiblitly - core

* revert comment changes
This commit is contained in:
Joel Challis 2021-02-06 16:56:13 +00:00 committed by GitHub
parent c50ecb4bb0
commit f5a38b95c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
71 changed files with 107 additions and 117 deletions

View File

@ -126,8 +126,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -96,7 +96,7 @@ void matrix_print(void) {
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print_hex8(row);
print(": "); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");

View File

@ -130,8 +130,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -120,7 +120,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -120,7 +120,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -133,8 +133,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -93,8 +93,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < matrix_rows(); row++) { for (uint8_t row = 0; row < matrix_rows(); row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -137,7 +137,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -148,7 +148,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -152,7 +152,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -138,7 +138,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -138,7 +138,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -138,7 +138,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -129,8 +129,8 @@ void adb_mouse_task(void)
if (debug_mouse) { if (debug_mouse) {
print("adb_host_mouse_recv: "); print_bin16(codes); print("\n"); print("adb_host_mouse_recv: "); print_bin16(codes); print("\n");
print("adb_mouse raw: ["); print("adb_mouse raw: [");
phex(mouseacc); print(" "); print_hex8(mouseacc); print(" ");
phex(mouse_report.buttons); print("|"); print_hex8(mouse_report.buttons); print("|");
print_decs(mouse_report.x); print(" "); print_decs(mouse_report.x); print(" ");
print_decs(mouse_report.y); print("]\n"); print_decs(mouse_report.y); print("]\n");
} }
@ -173,7 +173,7 @@ uint8_t matrix_scan(void)
key1 = codes&0xFF; key1 = codes&0xFF;
if (debug_matrix && codes) { if (debug_matrix && codes) {
print("adb_host_kbd_recv: "); phex16(codes); print("\n"); print("adb_host_kbd_recv: "); print_hex16(codes); print("\n");
} }
if (codes == 0) { // no keys if (codes == 0) { // no keys

View File

@ -220,7 +220,7 @@ void matrix_print(void)
print("\nr/c 01234567\n"); print("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_bin_reverse8(matrix_get_row(row)); print_bin_reverse8(matrix_get_row(row));
print("\n"); print("\n");
} }

View File

@ -277,7 +277,7 @@ void matrix_print(void) {
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -93,7 +93,7 @@ uint8_t matrix_scan(void)
} }
if (debug_enable) { if (debug_enable) {
print("["); phex(key); print("]\n"); print("["); print_hex8(key); print("]\n");
} }
matrix_scan_quantum(); matrix_scan_quantum();

View File

@ -381,8 +381,8 @@ void matrix_print(void)
{ {
print("\nr/c 01234567\n"); print("\nr/c 01234567\n");
for (uint8_t row = 0; row < matrix_rows(); row++) { for (uint8_t row = 0; row < matrix_rows(); row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse(matrix_get_row(row)); print_bin_reverse8(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -181,8 +181,8 @@ void matrix_print(void)
{ {
print("\nr/c 01234567\n"); print("\nr/c 01234567\n");
for (uint8_t row = 0; row < matrix_rows(); row++) { for (uint8_t row = 0; row < matrix_rows(); row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse(matrix_get_row(row)); print_bin_reverse8(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -233,7 +233,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -350,8 +350,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -238,7 +238,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -278,7 +278,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -238,7 +238,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -238,7 +238,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -210,7 +210,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -245,8 +245,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -152,8 +152,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -220,8 +220,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -241,8 +241,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -285,8 +285,8 @@ inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }
void matrix_print(void) { void matrix_print(void) {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -297,8 +297,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -75,7 +75,7 @@ void matrix_print(void) {
print("\nr/c 01234567\n"); print("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print_hex8(row);
print(": "); print(": ");
print_bin_reverse8(matrix_get_row(row)); print_bin_reverse8(matrix_get_row(row));
print("\n"); print("\n");

View File

@ -196,8 +196,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -261,8 +261,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -124,7 +124,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -180,7 +180,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -310,8 +310,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -295,8 +295,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -261,8 +261,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -309,8 +309,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -246,8 +246,8 @@ void matrix_print(void)
{ {
print("\nr/c 01234567\n"); print("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse(matrix_get_row(row)); print_bin_reverse8(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -186,7 +186,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -154,8 +154,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -85,8 +85,8 @@ matrix_row_t matrix_get_row(uint8_t row) {
void matrix_print(void) { void matrix_print(void) {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -158,8 +158,8 @@ void matrix_print(void)
{ {
print("\nr/c 01234567\n"); print("\nr/c 01234567\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse(matrix_get_row(row)); print_bin_reverse8(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -72,7 +72,7 @@ void matrix_print(void) {
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print_hex8(row);
print(": "); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");

View File

@ -126,7 +126,7 @@ void matrix_print(void)
print("\nr/c 0123456789ABCDEFGHIJKLMNOPQRSTUV \n"); print("\nr/c 0123456789ABCDEFGHIJKLMNOPQRSTUV \n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_bin_reverse32(matrix_get_row(row)); print_bin_reverse32(matrix_get_row(row));
print("\n"); print("\n");
} }

View File

@ -310,8 +310,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -183,8 +183,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -139,7 +139,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -118,7 +118,7 @@ void matrix_print(void) {
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print_hex8(row);
print(": "); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");

View File

@ -63,7 +63,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col)
row_data |= spi_read(); row_data |= spi_read();
#if DEBUG #if DEBUG
phex(~row_data); print_hex8(~row_data);
uprint(" "); uprint(" ");
#endif #endif
// For each row... // For each row...

View File

@ -236,7 +236,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -146,7 +146,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -124,7 +124,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -124,7 +124,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -124,7 +124,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -144,7 +144,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -144,7 +144,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -203,7 +203,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -148,7 +148,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -120,7 +120,7 @@ void matrix_print(void)
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");
} }

View File

@ -137,8 +137,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -311,8 +311,8 @@ void matrix_print(void)
{ {
print("\nr/c 0123456789ABCDEF\n"); print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print(": "); print_hex8(row); print(": ");
pbin_reverse16(matrix_get_row(row)); print_bin_reverse16(matrix_get_row(row));
print("\n"); print("\n");
} }
} }

View File

@ -69,7 +69,7 @@ void matrix_print(void) {
print_matrix_header(); print_matrix_header();
for (uint8_t row = 0; row < MATRIX_ROWS; row++) { for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
phex(row); print_hex8(row);
print(": "); print(": ");
print_matrix_row(row); print_matrix_row(row);
print("\n"); print("\n");

View File

@ -550,22 +550,22 @@ static void mousekey_param_print(void) {
# if !defined(NO_PRINT) && !defined(USER_PRINT) # if !defined(NO_PRINT) && !defined(USER_PRINT)
print("\n\t- Values -\n"); print("\n\t- Values -\n");
print("1: delay(*10ms): "); print("1: delay(*10ms): ");
pdec(mk_delay); print_dec(mk_delay);
print("\n"); print("\n");
print("2: interval(ms): "); print("2: interval(ms): ");
pdec(mk_interval); print_dec(mk_interval);
print("\n"); print("\n");
print("3: max_speed: "); print("3: max_speed: ");
pdec(mk_max_speed); print_dec(mk_max_speed);
print("\n"); print("\n");
print("4: time_to_max: "); print("4: time_to_max: ");
pdec(mk_time_to_max); print_dec(mk_time_to_max);
print("\n"); print("\n");
print("5: wheel_max_speed: "); print("5: wheel_max_speed: ");
pdec(mk_wheel_max_speed); print_dec(mk_wheel_max_speed);
print("\n"); print("\n");
print("6: wheel_time_to_max: "); print("6: wheel_time_to_max: ");
pdec(mk_wheel_time_to_max); print_dec(mk_wheel_time_to_max);
print("\n"); print("\n");
# endif /* !NO_PRINT */ # endif /* !NO_PRINT */
} }

View File

@ -471,7 +471,7 @@ void mousekey_clear(void) {
static void mousekey_debug(void) { static void mousekey_debug(void) {
if (!debug_mouse) return; if (!debug_mouse) return;
print("mousekey [btn|x y v h](rep/acl): ["); print("mousekey [btn|x y v h](rep/acl): [");
phex(mouse_report.buttons); print_hex8(mouse_report.buttons);
print("|"); print("|");
print_decs(mouse_report.x); print_decs(mouse_report.x);
print(" "); print(" ");

View File

@ -258,13 +258,3 @@ extern "C"
# define print_val_bin_reverse32(v) # define print_val_bin_reverse32(v)
#endif /* NO_PRINT */ #endif /* NO_PRINT */
/* Backward compatiblitly for old name */
#define pdec(data) print_dec(data)
#define pdec16(data) print_dec(data)
#define phex(data) print_hex8(data)
#define phex16(data) print_hex16(data)
#define pbin(data) print_bin8(data)
#define pbin16(data) print_bin16(data)
#define pbin_reverse(data) print_bin_reverse8(data)
#define pbin_reverse16(data) print_bin_reverse16(data)

View File

@ -95,11 +95,11 @@ void m0110_init(void) {
uint8_t data; uint8_t data;
m0110_send(M0110_MODEL); m0110_send(M0110_MODEL);
data = m0110_recv(); data = m0110_recv();
print("m0110_init model: "); phex(data); print("\n"); print("m0110_init model: "); print_hex8(data); print("\n");
m0110_send(M0110_TEST); m0110_send(M0110_TEST);
data = m0110_recv(); data = m0110_recv();
print("m0110_init test: "); phex(data); print("\n"); print("m0110_init test: "); print_hex8(data); print("\n");
*/ */
} }
@ -122,7 +122,7 @@ uint8_t m0110_send(uint8_t data) {
return 1; return 1;
ERROR: ERROR:
print("m0110_send err: "); print("m0110_send err: ");
phex(m0110_error); print_hex8(m0110_error);
print("\n"); print("\n");
_delay_ms(500); _delay_ms(500);
idle(); idle();
@ -146,7 +146,7 @@ uint8_t m0110_recv(void) {
return data; return data;
ERROR: ERROR:
print("m0110_recv err: "); print("m0110_recv err: ");
phex(m0110_error); print_hex8(m0110_error);
print("\n"); print("\n");
_delay_ms(500); _delay_ms(500);
idle(); idle();

View File

@ -190,7 +190,7 @@ static inline void ps2_mouse_clear_report(report_mouse_t *mouse_report) {
static inline void ps2_mouse_print_report(report_mouse_t *mouse_report) { static inline void ps2_mouse_print_report(report_mouse_t *mouse_report) {
if (!debug_mouse) return; if (!debug_mouse) return;
print("ps2_mouse: ["); print("ps2_mouse: [");
phex(mouse_report->buttons); print_hex8(mouse_report->buttons);
print("|"); print("|");
print_hex8((uint8_t)mouse_report->x); print_hex8((uint8_t)mouse_report->x);
print(" "); print(" ");