diff options
author | Jakub Kaderka <jakub.kaderka@gmail.com> | 2018-12-21 17:25:22 +0100 |
---|---|---|
committer | Jakub Kaderka <jakub.kaderka@gmail.com> | 2018-12-21 17:25:22 +0100 |
commit | bfa560413c8052e7ef2be656546b2868e5a993a2 (patch) | |
tree | fc133bc0b402d2c56a0b3bfa6d83519d43b9dad9 /tools | |
parent | f45756ee077e2829a2325ed360752ae9580318fd (diff) | |
download | ChibiOS-Contrib-bfa560413c8052e7ef2be656546b2868e5a993a2.tar.gz ChibiOS-Contrib-bfa560413c8052e7ef2be656546b2868e5a993a2.tar.bz2 ChibiOS-Contrib-bfa560413c8052e7ef2be656546b2868e5a993a2.zip |
Fixed Timer number generation
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mx2board.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py index 99b54a3..5bec83c 100755 --- a/tools/mx2board.py +++ b/tools/mx2board.py @@ -275,7 +275,7 @@ def gen_defines(project): defines['LINE_'+label] += ', ' + str(pad_key) + 'U)' if re.search(r"TIM\d+_CH\d$", signal, re.M): - timer = signal.replace('S_TIM', '').replace('_CH', '')[:-1] + timer = signal.replace('TIM', '').replace('_CH', '')[:-1] ch_num = int(signal[-1:]) defines['TIM_' + label] = timer |