mirror of https://github.com/ARMmbed/mbed-os.git
script: STM32: STM32_gen_PeripheralPins.py updated
Removed INN channel ADCpull/14895/head
parent
d83494f54b
commit
f14ce30ba6
|
@ -27,7 +27,7 @@ from xml.dom.minidom import parse, Node
|
||||||
from argparse import RawTextHelpFormatter
|
from argparse import RawTextHelpFormatter
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
GENPINMAP_VERSION = "1.20.1"
|
GENPINMAP_VERSION = "1.20.2"
|
||||||
|
|
||||||
ADD_DEVICE_IF = 0
|
ADD_DEVICE_IF = 0
|
||||||
ADD_GPIO_PINMAP = 0
|
ADD_GPIO_PINMAP = 0
|
||||||
|
@ -267,6 +267,8 @@ def store_pin(pin, name, functionality):
|
||||||
|
|
||||||
# function to store ADC list
|
# function to store ADC list
|
||||||
def store_adc(pin, name, signal):
|
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])
|
adclist.append([pin, name, signal])
|
||||||
|
|
||||||
|
|
||||||
|
@ -680,7 +682,6 @@ def print_adc():
|
||||||
prev_p = ''
|
prev_p = ''
|
||||||
alt_index = 0
|
alt_index = 0
|
||||||
for parsed_pin in adclist:
|
for parsed_pin in adclist:
|
||||||
if "IN" in parsed_pin[2]:
|
|
||||||
commented_line = " "
|
commented_line = " "
|
||||||
if parsed_pin[1] in PinLabel:
|
if parsed_pin[1] in PinLabel:
|
||||||
if "STDIO_UART" in PinLabel[parsed_pin[1]]:
|
if "STDIO_UART" in PinLabel[parsed_pin[1]]:
|
||||||
|
|
Loading…
Reference in New Issue