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/isr_vector.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '02-usart/src/isr_vector.c') diff --git a/02-usart/src/isr_vector.c b/02-usart/src/isr_vector.c index ab38dc2..6d5128c 100644 --- a/02-usart/src/isr_vector.c +++ b/02-usart/src/isr_vector.c @@ -1,7 +1,11 @@ #include "isr_vector.h" + +#include "arch.h" #include "delay.h" #include "gpio.h" +#ifdef ARCH_STM32L4 + /* Forward-declare the main function. This is implemented in main.c. */ void main(); @@ -163,3 +167,5 @@ void unhandled_isr() delay(5000000); } } + +#endif -- cgit