aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/pin.c
diff options
context:
space:
mode:
authorDamien George2020-02-27 15:36:53 +1100
committerDamien George2020-02-28 10:33:03 +1100
commit69661f3343bedf86e514337cff63d96cc42f8859 (patch)
treeaf5dfb380ffdb75dda84828f63cf9d840d992f0f /ports/stm32/pin.c
parent3f39d18c2b884d32f0443e2e8114ff9d7a14d718 (diff)
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
Diffstat (limited to 'ports/stm32/pin.c')
-rw-r--r--ports/stm32/pin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/stm32/pin.c b/ports/stm32/pin.c
index 93b5c3468..2a2228fc0 100644
--- a/ports/stm32/pin.c
+++ b/ports/stm32/pin.c
@@ -564,7 +564,7 @@ STATIC const mp_rom_map_elem_t pin_locals_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_AF_OD), MP_ROM_INT(GPIO_MODE_AF_OD) },
{ MP_ROM_QSTR(MP_QSTR_PULL_NONE), MP_ROM_INT(GPIO_NOPULL) },
-#include "genhdr/pins_af_const.h"
+ #include "genhdr/pins_af_const.h"
};
STATIC MP_DEFINE_CONST_DICT(pin_locals_dict, pin_locals_dict_table);
@@ -596,7 +596,7 @@ const mp_obj_type_t pin_type = {
.make_new = mp_pin_make_new,
.call = pin_call,
.protocol = &pin_pin_p,
- .locals_dict = (mp_obj_dict_t*)&pin_locals_dict,
+ .locals_dict = (mp_obj_dict_t *)&pin_locals_dict,
};
/// \moduleref pyb
@@ -670,5 +670,5 @@ const mp_obj_type_t pin_af_type = {
{ &mp_type_type },
.name = MP_QSTR_PinAF,
.print = pin_af_obj_print,
- .locals_dict = (mp_obj_dict_t*)&pin_af_locals_dict,
+ .locals_dict = (mp_obj_dict_t *)&pin_af_locals_dict,
};