~ruther/qmk_firmware

ref: 079ac7c1665c292ea086e8457d2a83dad805ea31 qmk_firmware/keyboards/handwired/symmetric70_proto/matrix_debug/gpio_extr.h -rw-r--r-- 242 bytes
079ac7c1 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: A-C, Part 2 (#23746) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
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
Do not follow this link