make script better conform to clang-format style

This commit is contained in:
Jeff Epler 2020-12-01 19:44:41 -06:00
parent 5668a80450
commit d73ab01598

View file

@ -13,7 +13,6 @@ def defines(name, suffix):
{{PIN_{pin} >> 5, PIN_{pin} & 0x1f, {instance}, {pinmux} & 0xf}}, {{PIN_{pin} >> 5, PIN_{pin} & 0x1f, {instance}, {pinmux} & 0xf}},
#endif''') #endif''')
print(f'}};') print(f'}};')
print()
print('''\ print('''\
struct can_function { struct can_function {
@ -22,8 +21,8 @@ struct can_function {
unsigned instance : 1; unsigned instance : 1;
unsigned mux : 4; unsigned mux : 4;
}; };
''') ''')
defines('can_rx', 'RX') defines('can_rx', 'RX')
print()
defines('can_tx', 'TX') defines('can_tx', 'TX')