aboutsummaryrefslogtreecommitdiff
path: root/quantum/config_common.h
diff options
context:
space:
mode:
authorMikkel Jeppesen <[email protected]>2020-01-27 05:04:39 +0100
committerDanny <[email protected]>2020-01-26 23:04:38 -0500
commit05d6e6ca78087969d7a47862341d10b6b555c37e (patch)
tree5cd80f59929781006d2412a9862a47fc05c4ec7c /quantum/config_common.h
parent645c5fabf24411fe65d2172a3509c26e053651a2 (diff)
downloadqmk_firmware-05d6e6ca78087969d7a47862341d10b6b555c37e.tar.gz
qmk_firmware-05d6e6ca78087969d7a47862341d10b6b555c37e.zip
Ensure setPinInput actually sets input high-Z (#6237)0.7.122
* Ensure setPinInput actually sets input high-z * Fixed _PIN_ADDRESS Macro arguments as recommended by vomindoraan * Fixed instances of setInput to use new behavour * Changed kmac matrix to use input with pullups * Update keyboards/gh60/revc/revc.h Co-Authored-By: fauxpark <[email protected]> * Fixed input state for unselect_rows * fixed merge conflict * Updated all instances of older uses of setPinInput() * Fixed naming mistake Co-authored-by: fauxpark <[email protected]>
Diffstat (limited to 'quantum/config_common.h')
-rw-r--r--quantum/config_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/config_common.h b/quantum/config_common.h
index 8de3f070c5..f981f3f8cb 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -132,7 +132,7 @@
# endif
# ifndef __ASSEMBLER__
-# define _PIN_ADDRESS(p, offset) _SFR_IO8(ADDRESS_BASE + (p >> PORT_SHIFTER) + offset)
+# define _PIN_ADDRESS(p, offset) _SFR_IO8(ADDRESS_BASE + ((p) >> PORT_SHIFTER) + (offset))
// Port X Input Pins Address
# define PINx_ADDRESS(p) _PIN_ADDRESS(p, 0)
// Port X Data Direction Register, 0:input 1:output