From 93b063fedfcf7409a67df035170ea5670cad22e1 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 24 Nov 2020 13:46:41 -0700 Subject: Moved action to top level. Removed old iterations of the project and moved the files from 02-usart to the root directory since that's the sole place where the action is and that subproject has outgrown its initial title. --- 02-usart/src/kern/main.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 02-usart/src/kern/main.c (limited to '02-usart/src/kern/main.c') diff --git a/02-usart/src/kern/main.c b/02-usart/src/kern/main.c deleted file mode 100644 index ebb2164..0000000 --- a/02-usart/src/kern/main.c +++ /dev/null @@ -1,29 +0,0 @@ -#include "arch.h" -#include "kern/log.h" - -#include "arch/stm32l4xxx/peripherals/system.h" -#include "arch/stm32l4xxx/peripherals/clock.h" - -void on_systick() /* Overrides weak-symbol on_systick. */ -{ - klogf("Systick\n"); -} - -#ifdef ARCH_STM32L4 - -/* 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()); - - /* Set the countdown to start from 10,000,0000. */ - SCB.strv_r = 10000000; - - /* Enable interrupts. */ - regset(SCB.stcs_r, scb_tickint, 1); - - /* Start the systick. */ - regset(SCB.stcs_r, scb_enable, 1); -} - -#endif -- cgit