aboutsummaryrefslogtreecommitdiff
path: root/src/kern/main.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-24 14:03:19 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-24 14:03:19 -0700
commit351ff7059a5bacb322664412a8c62ee4640b33bf (patch)
tree53ef3fb16c5742c2edc45e633d80f6e16896f864 /src/kern/main.c
parent6a1e0acc14b62c00317ac61c6ad6d8ffe441be4f (diff)
downloadstm32l4-351ff7059a5bacb322664412a8c62ee4640b33bf.tar.gz
stm32l4-351ff7059a5bacb322664412a8c62ee4640b33bf.tar.bz2
stm32l4-351ff7059a5bacb322664412a8c62ee4640b33bf.zip
Update .clang-format and run it on filse
Diffstat (limited to 'src/kern/main.c')
-rw-r--r--src/kern/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/kern/main.c b/src/kern/main.c
index ebb2164..1eedb59 100644
--- a/src/kern/main.c
+++ b/src/kern/main.c
@@ -1,8 +1,7 @@
#include "arch.h"
-#include "kern/log.h"
-
-#include "arch/stm32l4xxx/peripherals/system.h"
#include "arch/stm32l4xxx/peripherals/clock.h"
+#include "arch/stm32l4xxx/peripherals/system.h"
+#include "kern/log.h"
void on_systick() /* Overrides weak-symbol on_systick. */
{
@@ -14,7 +13,7 @@ void on_systick() /* Overrides weak-symbol on_systick. */
/* Main function. This gets executed from the interrupt vector defined above. */
int main()
{
- klogf("Hello, World! Clock Mhz: %d\n", (uint32_t) get_clock_mhz());
+ klogf("Hello, World! Clock Mhz: %d\n", (uint32_t)get_clock_mhz());
/* Set the countdown to start from 10,000,0000. */
SCB.strv_r = 10000000;