Skip to content

Commit

Permalink
On LPC176x toggle pins using LPC176x::gpio_toggle()
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-dm committed Jun 3, 2024
1 parent 06762db commit a02a11c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/HAL/LPC1768/fastio.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@

#define READ_PIN(IO) LPC176x::gpio_get(IO)
#define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V)
#define TOGGLE_PIN(IO) LPC176x::gpio_toggle(IO)

/**
* Magic I/O routines
Expand All @@ -66,7 +67,7 @@
#define _WRITE(IO,V) WRITE_PIN(IO,V)

/// toggle a pin
#define _TOGGLE(IO) _WRITE(IO, !READ(IO))
#define _TOGGLE(IO) TOGGLE_PIN(IO)

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

0 comments on commit a02a11c

Please # to comment.