summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/boards/make-pins.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-21 21:34:23 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-21 21:34:23 +1000
commit4ec803a42ae3080d4af959c7c2edf81e57f79377 (patch)
tree9ca889389b8087b3474d8a9eb855963a3ca07859 /stmhal/boards/make-pins.py
parent4c736ea8fc046dc564f9167967a5dd92f07ed002 (diff)
downloadmicropython-4ec803a42ae3080d4af959c7c2edf81e57f79377.tar.gz
micropython-4ec803a42ae3080d4af959c7c2edf81e57f79377.zip
all: Make static dicts use mp_rom_map_elem_t type and MP_ROM_xxx macros.
Diffstat (limited to 'stmhal/boards/make-pins.py')
-rwxr-xr-xstmhal/boards/make-pins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/boards/make-pins.py b/stmhal/boards/make-pins.py
index 51619ffa2b..210c7b63c8 100755
--- a/stmhal/boards/make-pins.py
+++ b/stmhal/boards/make-pins.py
@@ -370,8 +370,8 @@ class Pins(object):
af_words = mux_name.split('_') # ex mux_name: AF9_I2C2
cond_var = conditional_var(af_words[1])
print_conditional_if(cond_var, file=af_const_file)
- key = 'MP_OBJ_NEW_QSTR(MP_QSTR_{}),'.format(mux_name)
- val = 'MP_OBJ_NEW_SMALL_INT(GPIO_{})'.format(mux_name)
+ key = 'MP_ROM_QSTR(MP_QSTR_{}),'.format(mux_name)
+ val = 'MP_ROM_INT(GPIO_{})'.format(mux_name)
print(' { %-*s %s },' % (mux_name_width + 26, key, val),
file=af_const_file)
print_conditional_endif(cond_var, file=af_const_file)