Skip to content

Commit

Permalink
Merge pull request #414 from anonymouscowhead/lpc-nonOD
Browse files Browse the repository at this point in the history
In LPC port, alias PUSHPULL to default digital output
  • Loading branch information
fpoussin authored Jan 22, 2025
2 parents fa78359 + cf3c6d0 commit 5da10b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions os/hal/ports/LPC/LLD/GPIO/hal_pal_lld.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
#define PAL_MODE_INPUT_PULLUP (MODE_DIR_IN | MODE_MODE_PULL_UP | MODE_AD_DIGITAL)
#define PAL_MODE_INPUT_PULLDOWN (MODE_DIR_IN | MODE_MODE_PULL_DOWN | MODE_AD_DIGITAL)
#define PAL_MODE_OUTPUT_OPENDRAIN (MODE_DIR_OUT | MODE_OD_ENABLE | MODE_AD_DIGITAL)
/* LPC11Uxx does not support true pushpull output, but its non-opendrain output
* is sufficient in many use cases, so convenient to alias PUSHPULL to it. */
#define PAL_MODE_OUTPUT_PUSHPULL (MODE_DIR_OUT | MODE_AD_DIGITAL)

/*===========================================================================*/
/* I/O Ports Types and constants. */
Expand Down

0 comments on commit 5da10b0

Please sign in to comment.