diff options
author | Jakub Kaderka <jakub.kaderka@gmail.com> | 2018-09-28 12:10:01 +0200 |
---|---|---|
committer | Jakub Kaderka <jakub.kaderka@gmail.com> | 2018-09-28 12:10:01 +0200 |
commit | 22e538df162c8c8ecdaf2f223c24c0e8a67c9db5 (patch) | |
tree | e3d3201ba20b8706a55e61dc50d4e18cf0e4d6b2 /tools | |
parent | 38bcaedef46834e8a903c0c4a05884d221d2fc2e (diff) | |
download | ChibiOS-Contrib-22e538df162c8c8ecdaf2f223c24c0e8a67c9db5.tar.gz ChibiOS-Contrib-22e538df162c8c8ecdaf2f223c24c0e8a67c9db5.tar.bz2 ChibiOS-Contrib-22e538df162c8c8ecdaf2f223c24c0e8a67c9db5.zip |
Generate PAL_LINE for named pins
Diffstat (limited to 'tools')
-rwxr-xr-x[-rw-r--r--] | tools/mx2board.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mx2board.py b/tools/mx2board.py index 642a934..132689e 100644..100755 --- a/tools/mx2board.py +++ b/tools/mx2board.py @@ -267,6 +267,8 @@ def gen_defines(project): defines['PORT_'+label] = 'GPIO' + port_key defines['PAD_'+label] = pad_key + defines['LINE_'+label] = 'PAL_LINE(GPIO' + port_key + 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] |