File tree Expand file tree Collapse file tree
common-hal/microcontroller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void reset_all_pins(void) {
6161 pin_mask [0 ] &= ~(PORT_PA31 );
6262 #endif
6363
64- // gpio_set_port_direction(GPIO_PORTA, pin_mask[0] & ~MICROPY_PORT_A, GPIO_DIRECTION_OFF);
64+ gpio_set_port_direction (GPIO_PORTA , pin_mask [0 ] & ~MICROPY_PORT_A , GPIO_DIRECTION_OFF );
6565 gpio_set_port_direction (GPIO_PORTB , pin_mask [1 ] & ~MICROPY_PORT_B , GPIO_DIRECTION_OFF );
6666 #if PORT_BITS > 64
6767 gpio_set_port_direction (GPIO_PORTC , pin_mask [2 ] & ~MICROPY_PORT_C , GPIO_DIRECTION_OFF );
Original file line number Diff line number Diff line change 3636#include "hpl/gclk/hpl_gclk_base.h"
3737#include "hpl/pm/hpl_pm_base.h"
3838
39+ #include "common-hal/microcontroller/Pin.h"
3940#include "tick.h"
4041
4142extern volatile bool mp_msc_enabled ;
@@ -196,8 +197,8 @@ void reset_port(void) {
196197// // Wait for the DAC to sync then reset.
197198// while (DAC->STATUS.reg & DAC_STATUS_SYNCBUSY) {}
198199// DAC->CTRLA.reg |= DAC_CTRLA_SWRST;
199- //
200- // reset_all_pins();
200+
201+ reset_all_pins ();
201202//
202203//
203204// usb_hid_reset();
You can’t perform that action at this time.
0 commit comments