Run clang-format on the entire repo
This patch clang-formats the entire repo. Third-party code is
excluded.
I needed to fix up the .clang-format file so that all the header
includes are ordered properly. I could have sworn that it used to work
without the extra modification, but I guess not.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I64bb9f2c795401393f9dfe2fefc4f04cb36b52f6
diff --git a/frc971/imu/blink.c b/frc971/imu/blink.c
index d478d78..f34552b 100644
--- a/frc971/imu/blink.c
+++ b/frc971/imu/blink.c
@@ -10,14 +10,14 @@
#ifndef PICO_DEFAULT_LED_PIN
#warning blink example requires a board with a regular LED
#else
- const uint LED_PIN = PICO_DEFAULT_LED_PIN;
- gpio_init(LED_PIN);
- gpio_set_dir(LED_PIN, GPIO_OUT);
- while (true) {
- gpio_put(LED_PIN, 1);
- sleep_ms(250);
- gpio_put(LED_PIN, 0);
- sleep_ms(250);
- }
+ const uint LED_PIN = PICO_DEFAULT_LED_PIN;
+ gpio_init(LED_PIN);
+ gpio_set_dir(LED_PIN, GPIO_OUT);
+ while (true) {
+ gpio_put(LED_PIN, 1);
+ sleep_ms(250);
+ gpio_put(LED_PIN, 0);
+ sleep_ms(250);
+ }
#endif
}