Rename port_pin_list to variant_pin_list in python script
This commit is contained in:
parent
7cfa0f732e
commit
f42083c792
|
@ -226,7 +226,7 @@ class load_mcu:
|
||||||
gpio_pins = [pin for pin in self.pins if pin.startswith('P') and pin != 'PDR_ON']
|
gpio_pins = [pin for pin in self.pins if pin.startswith('P') and pin != 'PDR_ON']
|
||||||
|
|
||||||
source_code += '/*\n'
|
source_code += '/*\n'
|
||||||
source_code += 'const stm32_port_pin_type port_pin_list[] = {\n'
|
source_code += 'const stm32_port_pin_type variant_pin_list[] = {\n'
|
||||||
|
|
||||||
for pin in sorted(gpio_pins, key=lambda x: (x[0:2], int(x[2:]))):
|
for pin in sorted(gpio_pins, key=lambda x: (x[0:2], int(x[2:]))):
|
||||||
source_code += ' { GPIO' + pin[1:2] + ', GPIO_PIN_' + pin[2:].ljust(2) + '},\n'
|
source_code += ' { GPIO' + pin[1:2] + ', GPIO_PIN_' + pin[2:].ljust(2) + '},\n'
|
||||||
|
|
Loading…
Reference in New Issue