[formatting] run everything through codestyle

Almost nothing changes here except moving braces to the same line as the
function declaration. Everything else is largely whitespace changes and
a few dangling files with tab indents.

See scripts/codestyle
This commit is contained in:
Travis Geiselbrecht
2019-06-19 20:54:28 -07:00
parent 4f2d4841d8
commit d8fa82cb91
491 changed files with 6037 additions and 9035 deletions

View File

@@ -35,8 +35,7 @@
#include <platform/gpio.h>
#include <target/gpioconfig.h>
void target_early_init(void)
{
void target_early_init(void) {
/* configure the usart3 pins */
gpio_config(GPIO_USART3_TX, GPIO_STM32_AF | GPIO_STM32_AFn(GPIO_AF_USART3) | GPIO_PULLUP);
gpio_config(GPIO_USART3_RX, GPIO_STM32_AF | GPIO_STM32_AFn(GPIO_AF_USART3) | GPIO_PULLUP);
@@ -52,8 +51,7 @@ void target_early_init(void)
stm3220g_set_led_bits(1);
}
void target_init(void)
{
void target_init(void) {
TRACE_ENTRY;
stm32_debug_init();
@@ -61,8 +59,7 @@ void target_init(void)
TRACE_EXIT;
}
void target_set_debug_led(unsigned int led, bool on)
{
void target_set_debug_led(unsigned int led, bool on) {
switch (led) {
case 0:
gpio_set(GPIO_LED0, on);
@@ -79,8 +76,7 @@ void target_set_debug_led(unsigned int led, bool on)
}
}
void stm3220g_set_led_bits(unsigned int nr)
{
void stm3220g_set_led_bits(unsigned int nr) {
gpio_set(GPIO_LED0, nr & 1);
gpio_set(GPIO_LED1, nr & 2);
gpio_set(GPIO_LED2, nr & 4);