diff options
Diffstat (limited to 'keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h')
-rw-r--r-- | keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h b/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h new file mode 100644 index 0000000000..c7d08309d0 --- /dev/null +++ b/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h @@ -0,0 +1,10 @@ +#pragma once +// clang-format off + +#if defined(__AVR__) +# define readPort(port) PINx_ADDRESS(port) +typedef uint8_t port_data_t; +#else +# define readPort(qmk_pin) palReadPort(PAL_PORT(qmk_pin)) +typedef uint16_t port_data_t; +#endif |