Generate PAL_LINE for named pins

This commit is contained in:
Jakub Kaderka 2018-09-28 12:10:01 +02:00
parent 38bcaedef4
commit 22e538df16
1 changed files with 2 additions and 0 deletions

2
tools/mx2board.py Normal file → Executable file
View File

@ -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]