Pulldown pin mode support (#9701)

Implemented for LPC1768.
This commit is contained in:
Scott Lahteine
2018-02-18 19:26:23 -06:00
committed by GitHub
parent aef9e036bf
commit ca55f2927a
66 changed files with 1182 additions and 325 deletions

View File

@ -219,8 +219,10 @@ void setup_killpin() {
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
void setup_filrunoutpin() {
#if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
#if ENABLED(FIL_RUNOUT_PULLUP)
SET_INPUT_PULLUP(FIL_RUNOUT_PIN);
#elif ENABLED(FIL_RUNOUT_PULLDOWN)
SET_INPUT_PULLDOWN(FIL_RUNOUT_PIN);
#else
SET_INPUT(FIL_RUNOUT_PIN);
#endif