[style] mass reformat all the non external code to 4 space indents
Ran everything through scripts/codestyle.space, which uses astyle to generally follow K&R style. Biggest non whitespace change is pulling brackets down on function declarations, which I'm pretty ambivalent about, but astyle insists on taking a stance
This commit is contained in:
@@ -37,40 +37,40 @@
|
||||
|
||||
void target_early_init(void)
|
||||
{
|
||||
/* configure the usart3 pins */
|
||||
GPIO_PinRemapConfig(GPIO_FullRemap_USART3, ENABLE);
|
||||
/* configure the usart3 pins */
|
||||
GPIO_PinRemapConfig(GPIO_FullRemap_USART3, ENABLE);
|
||||
|
||||
gpio_config(GPIO(GPIO_PORT_D, 8), GPIO_STM32_AF);
|
||||
gpio_config(GPIO(GPIO_PORT_D, 9), GPIO_INPUT);
|
||||
gpio_config(GPIO(GPIO_PORT_D, 8), GPIO_STM32_AF);
|
||||
gpio_config(GPIO(GPIO_PORT_D, 9), GPIO_INPUT);
|
||||
|
||||
stm32_debug_early_init();
|
||||
stm32_debug_early_init();
|
||||
|
||||
/* configure some status leds */
|
||||
gpio_set(GPIO_LED0, 0);
|
||||
gpio_set(GPIO_LED1, 0);
|
||||
/* configure some status leds */
|
||||
gpio_set(GPIO_LED0, 0);
|
||||
gpio_set(GPIO_LED1, 0);
|
||||
|
||||
gpio_config(GPIO_LED0, GPIO_OUTPUT);
|
||||
gpio_config(GPIO_LED1, GPIO_OUTPUT);
|
||||
gpio_config(GPIO_LED0, GPIO_OUTPUT);
|
||||
gpio_config(GPIO_LED1, GPIO_OUTPUT);
|
||||
}
|
||||
|
||||
void target_init(void)
|
||||
{
|
||||
TRACE_ENTRY;
|
||||
TRACE_ENTRY;
|
||||
|
||||
stm32_debug_init();
|
||||
stm32_debug_init();
|
||||
|
||||
TRACE_EXIT;
|
||||
TRACE_EXIT;
|
||||
}
|
||||
|
||||
void target_set_debug_led(unsigned int led, bool on)
|
||||
{
|
||||
switch (led) {
|
||||
case 0:
|
||||
gpio_set(GPIO_LED0, on);
|
||||
break;
|
||||
case 1:
|
||||
gpio_set(GPIO_LED1, on);
|
||||
break;
|
||||
}
|
||||
switch (led) {
|
||||
case 0:
|
||||
gpio_set(GPIO_LED0, on);
|
||||
break;
|
||||
case 1:
|
||||
gpio_set(GPIO_LED1, on);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user