Set DRVSTR on output pins to strong (more current capability).

This commit is contained in:
Dan Halbert 2017-10-16 18:28:38 -04:00 committed by Scott Shawcroft
parent c6a15f76ad
commit 4f4ddf00dc
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ void common_hal_digitalio_digitalinout_switch_to_output(
pin_conf.input_pull = PORT_PIN_PULL_NONE;
port_pin_set_config(self->pin->pin, &pin_conf);
// Turn on "strong" pin driving (more current available). See DRVSTR doc in datasheet.
system_pinmux_pin_set_output_strength(self->pin->pin, SYSTEM_PINMUX_PIN_STRENGTH_HIGH);
self->output = true;
self->open_drain = drive_mode == DRIVE_MODE_OPEN_DRAIN;
common_hal_digitalio_digitalinout_set_value(self, value);