Set CAN1 if only one instance
For some serie: - CAN is defined and not CAN1 - CAN is not defined and CAN1 is - CAN and CAN1 are defined Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
9a384417b4
commit
f5c8329c64
1 changed files with 2 additions and 2 deletions
|
|
@ -442,8 +442,8 @@ def print_can(xml, l):
|
||||||
s1 = "%-12s" % (" {" + p[0] + ',')
|
s1 = "%-12s" % (" {" + p[0] + ',')
|
||||||
#2nd element is the CAN_XX signal
|
#2nd element is the CAN_XX signal
|
||||||
instance = p[2].split('_')[0].replace("CAN", "")
|
instance = p[2].split('_')[0].replace("CAN", "")
|
||||||
#if len(instance) == 0:
|
if len(instance) == 0:
|
||||||
# instance = '1'
|
instance = '1'
|
||||||
if 'STM32F10' in sys.argv[2] and l == canrd_list:
|
if 'STM32F10' in sys.argv[2] and l == canrd_list:
|
||||||
s1 += 'CAN' + instance + ', STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, '
|
s1 += 'CAN' + instance + ', STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, '
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue