script: STM32: STM32_gen_PeripheralPins.py updated

Removed INN channel ADC
pull/14895/head
anish-k 2021-07-08 13:19:36 +05:30
parent d83494f54b
commit f14ce30ba6
1 changed files with 36 additions and 35 deletions

View File

@ -27,7 +27,7 @@ from xml.dom.minidom import parse, Node
from argparse import RawTextHelpFormatter
import subprocess
GENPINMAP_VERSION = "1.20.1"
GENPINMAP_VERSION = "1.20.2"
ADD_DEVICE_IF = 0
ADD_GPIO_PINMAP = 0
@ -267,6 +267,8 @@ def store_pin(pin, name, functionality):
# function to store ADC list
def store_adc(pin, name, signal):
#INN channels not supported in mbed
if("IN" in signal and "INN" not in signal):
adclist.append([pin, name, signal])
@ -680,7 +682,6 @@ def print_adc():
prev_p = ''
alt_index = 0
for parsed_pin in adclist:
if "IN" in parsed_pin[2]:
commented_line = " "
if parsed_pin[1] in PinLabel:
if "STDIO_UART" in PinLabel[parsed_pin[1]]: