Skip to content

Commit

Permalink
ports/psoc6: Fix wordings.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
  • Loading branch information
IFX-Anusha committed Aug 26, 2024
1 parent d07d2bb commit 902c989
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ports/psoc6/boards/make-pins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from itertools import islice
import argparse
import sys
import csv
import re
import os

Expand Down Expand Up @@ -112,15 +111,15 @@ def print_const_table(self):
pin.print_const_table_entry()
print("};")

def parse_pin_details_file(self, pins_details_table):
def parse_pin_details_table(self, pins_details_table):
for pin in pins_details_table.get_pins_details():
pin_name = pin[0]
pin_addr = pin[1]
pin_exp = pin[2].strip('"')
pin = Pin(pin_name, pin_addr, pin_exp)
self.cpu_pins.append(NamedPin(pin_name, pin))

def parse_board_file(self, pins_table):
def parse_board_table(self, pins_table):
for pin in pins_table.get_pins():
board_pin_name = pin[0]
cpu_pin_name = pin[1]
Expand Down Expand Up @@ -261,10 +260,10 @@ def main():
print("// - --gen-pin-for {:s}".format(args.pin_package_filename))
pins_table, pins_details_table = pins.generate_pins_table(args.pin_package_filename)

pins.parse_pin_details_file(pins_details_table)
pins.parse_pin_details_table(pins_details_table)

if args.hdr_filename and args.qstr_filename:
pins.parse_board_file(pins_table)
pins.parse_board_table(pins_table)
pins.update_num_cpu_pins()
pins.print_const_table()
pins.print()
Expand Down

0 comments on commit 902c989

Please sign in to comment.