diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-08 19:42:07 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-08 19:42:07 +0100 |
commit | 196773505a5750428c14d328eab3d346ad4b4b92 (patch) | |
tree | c39943d0d3b424330ec849d7a81238b06a5cf858 /stmhal/boards/stm32f4xx-prefix.c | |
parent | a1d3ee376c25c0842096535c38e651431028d1b8 (diff) | |
parent | 6f418fc1b068c1a41113bb2b019a5803765e1deb (diff) | |
download | micropython-196773505a5750428c14d328eab3d346ad4b4b92.tar.gz micropython-196773505a5750428c14d328eab3d346ad4b4b92.zip |
Merge branch 'pin-af' of https://github.com/dhylands/micropython into dhylands-pin-af
Diffstat (limited to 'stmhal/boards/stm32f4xx-prefix.c')
-rw-r--r-- | stmhal/boards/stm32f4xx-prefix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/boards/stm32f4xx-prefix.c b/stmhal/boards/stm32f4xx-prefix.c index 3bbb6bda0e..45bcc0b65a 100644 --- a/stmhal/boards/stm32f4xx-prefix.c +++ b/stmhal/boards/stm32f4xx-prefix.c @@ -14,6 +14,7 @@ #define AF(af_idx, af_fn, af_unit, af_type, af_ptr) \ { \ { &pin_af_type }, \ + .name = MP_QSTR_AF ## af_idx ## _ ## af_fn ## af_unit, \ .idx = (af_idx), \ .fn = AF_FN_ ## af_fn, \ .unit = (af_unit), \ @@ -24,7 +25,7 @@ #define PIN(p_port, p_pin, p_num_af, p_af, p_adc_num, p_adc_channel) \ { \ { &pin_type }, \ - .name = #p_port #p_pin, \ + .name = MP_QSTR_ ## p_port ## p_pin, \ .port = PORT_ ## p_port, \ .pin = (p_pin), \ .num_af = (p_num_af), \ |