File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
common-hal/microcontroller Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void reset_all_pins(void) {
61
61
pin_mask [0 ] &= ~(PORT_PA31 );
62
62
#endif
63
63
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 );
65
65
gpio_set_port_direction (GPIO_PORTB , pin_mask [1 ] & ~MICROPY_PORT_B , GPIO_DIRECTION_OFF );
66
66
#if PORT_BITS > 64
67
67
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 36
36
#include "hpl/gclk/hpl_gclk_base.h"
37
37
#include "hpl/pm/hpl_pm_base.h"
38
38
39
+ #include "common-hal/microcontroller/Pin.h"
39
40
#include "tick.h"
40
41
41
42
extern volatile bool mp_msc_enabled ;
@@ -196,8 +197,8 @@ void reset_port(void) {
196
197
// // Wait for the DAC to sync then reset.
197
198
// while (DAC->STATUS.reg & DAC_STATUS_SYNCBUSY) {}
198
199
// DAC->CTRLA.reg |= DAC_CTRLA_SWRST;
199
- //
200
- // reset_all_pins();
200
+
201
+ reset_all_pins ();
201
202
//
202
203
//
203
204
// usb_hid_reset();
You can’t perform that action at this time.
0 commit comments