device/avr: Add `NO_PIN` to `pins_and_ports.h`

We'll be using `NO_PIN` to tell the keyscanner to not scan a given position of
the matrix. This will be needed for devices that use multiple scanners.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
hardware/ploopy
Gergely Nagy 3 years ago
parent bc0466aa22
commit 4ef189c0b1
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -160,3 +160,5 @@ enum { PIN_OFFSET,
#define OUTPUT_TOGGLE(pin) (PORT_REG_FOR_PIN(pin) ^= (PIN_MASK_FOR_PIN(pin)))
#define READ_PIN(pin) (!!(PIN_REG_FOR_PIN(pin) & PIN_MASK_FOR_PIN(pin)))
#define NO_PIN (uint8_t)(~0)

Loading…
Cancel
Save