make script better conform to clang-format style
This commit is contained in:
parent
5668a80450
commit
d73ab01598
1 changed files with 7 additions and 8 deletions
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue