[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:
@@ -36,42 +36,42 @@
|
||||
|
||||
void target_early_init(void)
|
||||
{
|
||||
/* configure the usart2 pins */
|
||||
gpio_config(GPIO(GPIO_PORT_A, 2), GPIO_STM32_AF | GPIO_STM32_AFn(1));
|
||||
gpio_config(GPIO(GPIO_PORT_A, 3), GPIO_STM32_AF | GPIO_STM32_AFn(1));
|
||||
/* configure the usart2 pins */
|
||||
gpio_config(GPIO(GPIO_PORT_A, 2), GPIO_STM32_AF | GPIO_STM32_AFn(1));
|
||||
gpio_config(GPIO(GPIO_PORT_A, 3), GPIO_STM32_AF | GPIO_STM32_AFn(1));
|
||||
|
||||
stm32_debug_early_init();
|
||||
stm32_debug_early_init();
|
||||
|
||||
/* configure some status leds */
|
||||
gpio_set(GPIO_LED0, 1);
|
||||
gpio_config(GPIO_LED0, GPIO_OUTPUT);
|
||||
/* configure some status leds */
|
||||
gpio_set(GPIO_LED0, 1);
|
||||
gpio_config(GPIO_LED0, GPIO_OUTPUT);
|
||||
|
||||
#if 0
|
||||
gpio_config(GPIO(GPIO_PORT_A, 2), GPIO_OUTPUT);
|
||||
gpio_config(GPIO(GPIO_PORT_A, 3), GPIO_OUTPUT);
|
||||
bool on = false;
|
||||
while(true) {
|
||||
on = !on;
|
||||
gpio_set(GPIO(GPIO_PORT_A, 2), on);
|
||||
gpio_set(GPIO(GPIO_PORT_A, 3), on);
|
||||
gpio_set(GPIO_LED0, on);
|
||||
int i;
|
||||
for (i = 0; i<800000; i++) {}
|
||||
}
|
||||
gpio_config(GPIO(GPIO_PORT_A, 2), GPIO_OUTPUT);
|
||||
gpio_config(GPIO(GPIO_PORT_A, 3), GPIO_OUTPUT);
|
||||
bool on = false;
|
||||
while (true) {
|
||||
on = !on;
|
||||
gpio_set(GPIO(GPIO_PORT_A, 2), on);
|
||||
gpio_set(GPIO(GPIO_PORT_A, 3), on);
|
||||
gpio_set(GPIO_LED0, on);
|
||||
int i;
|
||||
for (i = 0; i<800000; i++) {}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void target_init(void)
|
||||
{
|
||||
stm32_debug_init();
|
||||
stm32_debug_init();
|
||||
}
|
||||
|
||||
void target_set_debug_led(unsigned int led, bool on)
|
||||
{
|
||||
switch (led) {
|
||||
case 0:
|
||||
gpio_set(GPIO_LED0, on);
|
||||
break;
|
||||
}
|
||||
switch (led) {
|
||||
case 0:
|
||||
gpio_set(GPIO_LED0, on);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user