Set the GPIO Mode to STM_MODE_INPUT instead of STM_MODE_AF_PP for F1
For Uart_RX and CAN_RD Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
c7435b673b
commit
2fa77a8d9f
1 changed files with 8 additions and 2 deletions
|
|
@ -394,6 +394,9 @@ def print_uart(xml, l):
|
|||
#2nd element is the UART_XX signal
|
||||
b=p[2].split('_')[0]
|
||||
s1 += "%-9s" % (b[:len(b)-1] + b[len(b)-1:] + ',')
|
||||
if 'STM32F10' in sys.argv[2] and l == uartrx_list:
|
||||
s1 += 'STM_PIN_DATA(STM_MODE_INPUT, GPIO_PULLUP, '
|
||||
else:
|
||||
s1 += 'STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, '
|
||||
r = result.split(' ')
|
||||
for af in r:
|
||||
|
|
@ -441,6 +444,9 @@ def print_can(xml, l):
|
|||
instance = p[2].split('_')[0].replace("CAN", "")
|
||||
#if len(instance) == 0:
|
||||
# instance = '1'
|
||||
if 'STM32F10' in sys.argv[2] and l == canrd_list:
|
||||
s1 += 'CAN' + instance + 'STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, '
|
||||
else:
|
||||
s1 += 'CAN' + instance + ', STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, '
|
||||
r = result.split(' ')
|
||||
for af in r:
|
||||
|
|
|
|||
Loading…
Reference in a new issue