1
0
Fork 0

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(" ");