1
0
forked from me/IronOS

Cleanup make includes and formatting rules (#1860)

* Draft cleanup of the folder definition mess

* Move old startup

* Fixup! broken hacky includes

* Update Makefile

* Update Makefile

* Update Makefile

* Bulk format

* Who knew, header guards are a wise idea

* Squash some sizing warnings

* Drop broken usb stack

* Fix BLE headers to be sensible

* Cleaning up proper c styling

* We have newer clang, it does bracketing now

* Run clang-format brackets

* We can drop the old messy bracket-checker with newer clang format

* WiP formatter

* Align grids of scripts by right side

Massively easier to read in nearly all cases

* Excempt the table for compression from formatter
This commit is contained in:
Ben V. Brown
2023-12-27 09:23:12 +11:00
committed by GitHub
parent 849d1f7d40
commit ec5f07ec0c
248 changed files with 58306 additions and 70269 deletions

View File

@@ -33,34 +33,34 @@ struct pin_mux_cfg {
static const struct pin_mux_cfg af_pin_table[] = {
#ifdef CONFIG_GPIO0_FUNC
{.pin = GPIO_PIN_0, .func = CONFIG_GPIO0_FUNC},
{ .pin = GPIO_PIN_0, .func = CONFIG_GPIO0_FUNC},
#endif
#ifdef CONFIG_GPIO1_FUNC
{.pin = GPIO_PIN_1, .func = CONFIG_GPIO1_FUNC},
{ .pin = GPIO_PIN_1, .func = CONFIG_GPIO1_FUNC},
#endif
#ifdef CONFIG_GPIO2_FUNC
{.pin = GPIO_PIN_2, .func = CONFIG_GPIO2_FUNC},
{ .pin = GPIO_PIN_2, .func = CONFIG_GPIO2_FUNC},
#endif
#ifdef CONFIG_GPIO3_FUNC
{.pin = GPIO_PIN_3, .func = CONFIG_GPIO3_FUNC},
{ .pin = GPIO_PIN_3, .func = CONFIG_GPIO3_FUNC},
#endif
#ifdef CONFIG_GPIO4_FUNC
{.pin = GPIO_PIN_4, .func = CONFIG_GPIO4_FUNC},
{ .pin = GPIO_PIN_4, .func = CONFIG_GPIO4_FUNC},
#endif
#ifdef CONFIG_GPIO5_FUNC
{.pin = GPIO_PIN_5, .func = CONFIG_GPIO5_FUNC},
{ .pin = GPIO_PIN_5, .func = CONFIG_GPIO5_FUNC},
#endif
#ifdef CONFIG_GPIO6_FUNC
{.pin = GPIO_PIN_6, .func = CONFIG_GPIO6_FUNC},
{ .pin = GPIO_PIN_6, .func = CONFIG_GPIO6_FUNC},
#endif
#ifdef CONFIG_GPIO7_FUNC
{.pin = GPIO_PIN_7, .func = CONFIG_GPIO7_FUNC},
{ .pin = GPIO_PIN_7, .func = CONFIG_GPIO7_FUNC},
#endif
#ifdef CONFIG_GPIO8_FUNC
{.pin = GPIO_PIN_8, .func = CONFIG_GPIO8_FUNC},
{ .pin = GPIO_PIN_8, .func = CONFIG_GPIO8_FUNC},
#endif
#ifdef CONFIG_GPIO9_FUNC
{.pin = GPIO_PIN_9, .func = CONFIG_GPIO9_FUNC},
{ .pin = GPIO_PIN_9, .func = CONFIG_GPIO9_FUNC},
#endif
#ifdef CONFIG_GPIO10_FUNC
{.pin = GPIO_PIN_10, .func = CONFIG_GPIO10_FUNC},
@@ -146,8 +146,9 @@ static void board_pin_mux_init(void) {
/*if using gpio9-gpio12 and func is not analog and output ,should set reg_aon_pad_ie_smt corresponding bit = 1*/
if ((af_pin_table[i].pin > GPIO_PIN_8) && (af_pin_table[i].pin < GPIO_PIN_13)) {
if ((af_pin_table[i].func != 10) && ((af_pin_table[i].func < GPIO_FUN_GPIO_OUTPUT_UP) || (af_pin_table[i].func > GPIO_FUN_GPIO_OUTPUT_NONE)))
if ((af_pin_table[i].func != 10) && ((af_pin_table[i].func < GPIO_FUN_GPIO_OUTPUT_UP) || (af_pin_table[i].func > GPIO_FUN_GPIO_OUTPUT_NONE))) {
hbn_aon_ie |= (1 << (af_pin_table[i].pin - 9));
}
}
/*if reset state*/