Remove legacy print backward compatiblitly (#11805)
* Remove legacy print backward compatiblitly * Remove legacy print backward compatiblitly - core * revert comment changesmaster
parent
c50ecb4bb0
commit
f5a38b95c1
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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...
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(" ");
|
||||||
|
|
|
@ -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)
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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(" ");
|
||||||
|
|
Loading…
Reference in New Issue