diff options
author | Diego Ismirlian <dismirlian (at) google's mail.com> | 2017-10-29 17:52:54 -0300 |
---|---|---|
committer | Diego Ismirlian <dismirlian (at) google's mail.com> | 2017-10-29 17:52:54 -0300 |
commit | f4cf7e5591c47b978d2141486fe7f98400c3c5bc (patch) | |
tree | 5deb523e6f9e4a605d629d35fb889be29b52be81 /tools/mx2board.py | |
parent | decde2ca4c21220f6daab0880de08cd974dd62ef (diff) | |
parent | a0089c14daa3c5c9ef6e0e30b26efaae2ccda128 (diff) | |
download | ChibiOS-Contrib-f4cf7e5591c47b978d2141486fe7f98400c3c5bc.tar.gz ChibiOS-Contrib-f4cf7e5591c47b978d2141486fe7f98400c3c5bc.tar.bz2 ChibiOS-Contrib-f4cf7e5591c47b978d2141486fe7f98400c3c5bc.zip |
Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib
Diffstat (limited to 'tools/mx2board.py')
-rw-r--r-- | tools/mx2board.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py index 85e643b..ea0b010 100644 --- a/tools/mx2board.py +++ b/tools/mx2board.py @@ -268,7 +268,7 @@ def gen_defines(project): defines['PORT_'+label] = 'GPIO' + port_key defines['PAD_'+label] = pad_key - if re.search(r"TIM\d_CH\d", signal, re.M): + if re.search(r"TIM\d+_CH\d$", signal, re.M): timer = signal.replace('S_TIM', '').replace('_CH', '')[:-1] ch_num = int(signal[-1:]) |