summaryrefslogtreecommitdiff
path: root/ports/stm/tools
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-05-30 10:44:13 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2020-06-03 10:56:35 +0100
commitdd5d7c86d22807c021dd1711eb7dd3daebc5cfcf (patch)
treedde417af2cae8cb1797582d6489eab9cb9caeddf /ports/stm/tools
parent60df6170cc5d0e495fde9613c05c55b64189b425 (diff)
Fix up end of file and trailing whitespace.
This can be enforced by pre-commit, but correct it separately to make it easier to review.
Diffstat (limited to 'ports/stm/tools')
-rw-r--r--ports/stm/tools/examples/nucleo_h743.csv2
-rw-r--r--ports/stm/tools/parse_af_csv.py8
-rw-r--r--ports/stm/tools/parse_pins_csv.py8
3 files changed, 9 insertions, 9 deletions
diff --git a/ports/stm/tools/examples/nucleo_h743.csv b/ports/stm/tools/examples/nucleo_h743.csv
index 2481415b3..d3647ca42 100644
--- a/ports/stm/tools/examples/nucleo_h743.csv
+++ b/ports/stm/tools/examples/nucleo_h743.csv
@@ -127,4 +127,4 @@ ETH_RMII_RXD0,PC4
ETH_RMII_RXD1,PC5
ETH_RMII_TX_EN,PG11
ETH_RMII_TXD0,PG13
-ETH_RMII_TXD1,PB13 \ No newline at end of file
+ETH_RMII_TXD1,PB13
diff --git a/ports/stm/tools/parse_af_csv.py b/ports/stm/tools/parse_af_csv.py
index b257a450c..4e9725260 100644
--- a/ports/stm/tools/parse_af_csv.py
+++ b/ports/stm/tools/parse_af_csv.py
@@ -28,8 +28,8 @@ import sys
# Use: parse_af_csf.py Filename.csv -pins-only
# Designed for use with .csv files from Micropython, or in identical format
# created via Datasheet peripheral tables with a Sheets program.
-#
-# See examples/stm32f405.csv for example formatting.
+#
+# See examples/stm32f405.csv for example formatting.
# Most peripherals (SPI, I2C) output 3 values:
# peripheral index, alt function, pin string
@@ -52,7 +52,7 @@ def evaluate_tim(inper, inlist, altfn, pin):
if inper[:3] == "TIM" and inper[5:7] == "CH" and inper[-1:] != 'N':
inlist.append([inper[3:4],altfn,inper[-1:],pin])
-
+
# Open target file
with open(sys.argv[1]) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
@@ -107,7 +107,7 @@ with open(sys.argv[1]) as csv_file:
print(" PERIPH(" + row[0] + ", " + str(row[1]) + ", &pin_" + row[2] + "),")
print("};")
- # Timer special case:
+ # Timer special case:
print("const mcu_tim_pin_obj_t mcu_tim_pin_list[" + str(len(outlist[-1])) + "] = {")
for row in outlist[-1]:
print(" TIM(" + row[0] + ", " + str(row[1]) + ", " + str(row[2]) + ", &pin_" + row[3] + "),")
diff --git a/ports/stm/tools/parse_pins_csv.py b/ports/stm/tools/parse_pins_csv.py
index b69b4791b..4ab3fc25c 100644
--- a/ports/stm/tools/parse_pins_csv.py
+++ b/ports/stm/tools/parse_pins_csv.py
@@ -25,12 +25,12 @@
import csv
import sys
-# Use: parse_pins_csv.py Filename.csv
+# Use: parse_pins_csv.py Filename.csv
# Designed for use with .csv files from Micropython, or in identical format
# created via Datasheet peripheral tables with a Sheets program.
-#
-# See examples/nucleo_h743.csv for example formatting.
-
+#
+# See examples/nucleo_h743.csv for example formatting.
+
# Open target file
with open(sys.argv[1]) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')