From cd115ba47253ce8d2680178248116d251abacb23 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Mon, 16 Nov 2020 18:53:44 -0700 Subject: Update the genmake script for tests. Update the genmake script to do the following: - Fix bug to link the object files from the source. - Test build output goes into a build/ directory. - Test makefile rules now run the test after building. --- 02-usart/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to '02-usart/src/main.c') diff --git a/02-usart/src/main.c b/02-usart/src/main.c index 862676c..5f45e0b 100644 --- a/02-usart/src/main.c +++ b/02-usart/src/main.c @@ -74,6 +74,8 @@ int enable_usart1(uint32_t baud_rate) enable_interrupts(); } +#ifdef ARCH_STM32L4 + /* Main function. This gets executed from the interrupt vector defined above. */ int main() { @@ -92,3 +94,5 @@ int main() usart_transmit_str_sync(&USART2, "Hello, World\n"); for(;;); } + +#endif -- cgit