Skip to content

Commit

Permalink
[code-styly] clang formated file
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Dec 1, 2023
1 parent ddd8d8a commit 71b6046
Show file tree
Hide file tree
Showing 50 changed files with 37,201 additions and 21,883 deletions.
684 changes: 684 additions & 0 deletions .clang-format

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/hello_world/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ extern uint32_t __stack_ddr_srv_end;
sunxi_uart_t uart_dbg = {
.base = 0x02500000,
.id = 0,
.gpio_tx = {GPIO_PIN(PORTH, 9), GPIO_PERIPH_MUX5},
.gpio_rx = {GPIO_PIN(PORTH, 10), GPIO_PERIPH_MUX5},
.gpio_tx = { GPIO_PIN(PORTH, 9), GPIO_PERIPH_MUX5 },
.gpio_rx = { GPIO_PIN(PORTH, 10), GPIO_PERIPH_MUX5 },
};

int main(void)
Expand Down
9 changes: 5 additions & 4 deletions app/read_chip_efuse/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ extern uint32_t __stack_ddr_srv_end;
sunxi_uart_t uart_dbg = {
.base = 0x02500000,
.id = 0,
.gpio_tx = {GPIO_PIN(PORTH, 9), GPIO_PERIPH_MUX5},
.gpio_rx = {GPIO_PIN(PORTH, 10), GPIO_PERIPH_MUX5},
.gpio_tx = { GPIO_PIN(PORTH, 9), GPIO_PERIPH_MUX5 },
.gpio_rx = { GPIO_PIN(PORTH, 10), GPIO_PERIPH_MUX5 },
};

int main(void)
Expand All @@ -31,14 +31,15 @@ int main(void)

sunxi_clk_init();

uint32_t id[4];
uint32_t id[4];

id[0] = read32(0x03006200 + 0x0);
id[1] = read32(0x03006200 + 0x4);
id[2] = read32(0x03006200 + 0x8);
id[3] = read32(0x03006200 + 0xc);

printk(LOG_LEVEL_INFO, "Chip ID is: %08x%08x%08x%08x\r\n", id[0], id[1], id[2], id[3]);
printk(LOG_LEVEL_INFO, "Chip ID is: %08x%08x%08x%08x\r\n", id[0], id[1],
id[2], id[3]);

return 0;
}
4 changes: 2 additions & 2 deletions app/read_chipsid/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ extern uint32_t __stack_ddr_srv_end;
sunxi_uart_t uart_dbg = {
.base = 0x02500000,
.id = 0,
.gpio_tx = {GPIO_PIN(PORTH, 9), GPIO_PERIPH_MUX5},
.gpio_rx = {GPIO_PIN(PORTH, 10), GPIO_PERIPH_MUX5},
.gpio_tx = { GPIO_PIN(PORTH, 9), GPIO_PERIPH_MUX5 },
.gpio_rx = { GPIO_PIN(PORTH, 10), GPIO_PERIPH_MUX5 },
};

int main(void)
Expand Down
Loading

0 comments on commit 71b6046

Please sign in to comment.