aboutsummaryrefslogtreecommitdiff
path: root/system-clock/src/main.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-16 00:23:35 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-16 00:23:35 -0700
commitedec50e6a918359190f8ca34b2148e3a3c637e40 (patch)
tree39641126769cbf8bfc29bdca503ab23a3801e206 /system-clock/src/main.c
parentb679becb9d09b6e74bf1412e98132504f8467c2b (diff)
downloadstm32l4-edec50e6a918359190f8ca34b2148e3a3c637e40.tar.gz
stm32l4-edec50e6a918359190f8ca34b2148e3a3c637e40.tar.bz2
stm32l4-edec50e6a918359190f8ca34b2148e3a3c637e40.zip
Format all files and add a clang-format file.
Diffstat (limited to 'system-clock/src/main.c')
-rw-r--r--system-clock/src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/system-clock/src/main.c b/system-clock/src/main.c
index 39f4a80..7912bf2 100644
--- a/system-clock/src/main.c
+++ b/system-clock/src/main.c
@@ -1,6 +1,6 @@
-#include "gpio.h"
-#include "delay.h"
#include "clock.h"
+#include "delay.h"
+#include "gpio.h"
#include "spin.h"
volatile uint32_t delay_amt = 20000000 / 4;
@@ -18,7 +18,7 @@ int main()
set_system_clock_MHz(80);
uint32_t count = 0;
- while(1) {
+ while (1) {
/* Set the GPIO pin to high. */
pin_off(pin1);
pin_off(pin3);
@@ -31,6 +31,6 @@ int main()
pin_on(pin3);
delay(delay_amt);
- ++ count;
+ ++count;
}
}