Skip to content

Commit

Permalink
⚡️ Optimize LPC176x pin toggle (MarlinFirmware#27149)
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-dm authored and thinkyhead committed Jun 16, 2024
1 parent 3430543 commit f7680f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/LPC1768/fastio.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#define _WRITE(IO,V) WRITE_PIN(IO,V)

/// toggle a pin
#define _TOGGLE(IO) _WRITE(IO, !READ(IO))
#define _TOGGLE(IO) LPC176x::gpio_toggle(IO)

/// set pin as input
#define _SET_INPUT(IO) SET_DIR_INPUT(IO)
Expand Down

0 comments on commit f7680f3

Please sign in to comment.