summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgillick <j_gillick@yahoo.com>2020-03-22 18:41:19 -0700
committerjgillick <j_gillick@yahoo.com>2020-03-22 18:41:19 -0700
commit29ce7567098dd6b5b093b1bd5a3e0ff553c91801 (patch)
treed6a767bb89d0859a6d5807becd0c3524d8269c36
parenta79ac35173d29b473f64492b089f74e88a13d8bd (diff)
PR feedback.
-rw-r--r--ports/stm/boards/thunderpack/pins.c8
-rw-r--r--ports/stm/supervisor/usb.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/stm/boards/thunderpack/pins.c b/ports/stm/boards/thunderpack/pins.c
index 830e99dae..04394993e 100644
--- a/ports/stm/boards/thunderpack/pins.c
+++ b/ports/stm/boards/thunderpack/pins.c
@@ -10,10 +10,10 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_A6), MP_ROM_PTR(&pin_PA06) },
{ MP_ROM_QSTR(MP_QSTR_A7), MP_ROM_PTR(&pin_PA07) },
{ MP_ROM_QSTR(MP_QSTR_A8), MP_ROM_PTR(&pin_PA08) },
- { MP_ROM_QSTR(MP_QSTR_A9), MP_ROM_PTR(&pin_PA09) }, //USB (shouldn't be used)
- { MP_ROM_QSTR(MP_QSTR_A10), MP_ROM_PTR(&pin_PA10) }, //USB (shouldn't be used)
- { MP_ROM_QSTR(MP_QSTR_A11), MP_ROM_PTR(&pin_PA11) }, //USB (shouldn't be used)
- { MP_ROM_QSTR(MP_QSTR_A12), MP_ROM_PTR(&pin_PA12) }, //USB (shouldn't be used)
+ { MP_ROM_QSTR(MP_QSTR_A9), MP_ROM_PTR(&pin_PA09) },
+ { MP_ROM_QSTR(MP_QSTR_A10), MP_ROM_PTR(&pin_PA10) },
+ { MP_ROM_QSTR(MP_QSTR_A11), MP_ROM_PTR(&pin_PA11) },
+ { MP_ROM_QSTR(MP_QSTR_A12), MP_ROM_PTR(&pin_PA12) },
{ MP_ROM_QSTR(MP_QSTR_A13), MP_ROM_PTR(&pin_PA13) },
{ MP_ROM_QSTR(MP_QSTR_A14), MP_ROM_PTR(&pin_PA14) },
diff --git a/ports/stm/supervisor/usb.c b/ports/stm/supervisor/usb.c
index 6cb9feb4b..93b5ae769 100644
--- a/ports/stm/supervisor/usb.c
+++ b/ports/stm/supervisor/usb.c
@@ -85,7 +85,7 @@ void init_usb_hardware(void) {
never_reset_pin_number(0, 12);
/* Configure VBUS Pin */
-#if (BOARD_NO_VBUS_SENSE)
+#if (BOARD_NO_VBUS_SENSE == 0)
GPIO_InitStruct.Pin = GPIO_PIN_9;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;