summaryrefslogtreecommitdiff
path: root/platforms/avr
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-12-27 13:27:38 +1100
committerGitHub <noreply@github.com>2021-12-27 13:27:38 +1100
commit3a3272a3d660efc666c6b0376d2bff69901aef9b (patch)
treea8fe71cbbcecec5b0d92e89e623c26e88d4f539f /platforms/avr
parent11d5ff415fad40988aba9a43628720a106c2b198 (diff)
Defer pin operations to gpio.h (#15589)
Diffstat (limited to 'platforms/avr')
-rw-r--r--platforms/avr/drivers/serial.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/platforms/avr/drivers/serial.c b/platforms/avr/drivers/serial.c
index 9a7345a53d..7a4e5e76e6 100644
--- a/platforms/avr/drivers/serial.c
+++ b/platforms/avr/drivers/serial.c
@@ -119,12 +119,6 @@
# error invalid SOFT_SERIAL_PIN value
# endif
-# define setPinInputHigh(pin) (DDRx_ADDRESS(pin) &= ~_BV((pin)&0xF), PORTx_ADDRESS(pin) |= _BV((pin)&0xF))
-# define setPinOutput(pin) (DDRx_ADDRESS(pin) |= _BV((pin)&0xF))
-# define writePinHigh(pin) (PORTx_ADDRESS(pin) |= _BV((pin)&0xF))
-# define writePinLow(pin) (PORTx_ADDRESS(pin) &= ~_BV((pin)&0xF))
-# define readPin(pin) ((bool)(PINx_ADDRESS(pin) & _BV((pin)&0xF)))
-
# define ALWAYS_INLINE __attribute__((always_inline))
# define NO_INLINE __attribute__((noinline))
# define _delay_sub_us(x) __builtin_avr_delay_cycles(x)