From 44c2d2d5e5ce43563a4912b2967cdb6b2039b6dd Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 18 Nov 2020 01:32:24 -0700 Subject: A basic blink program that works off of interrupts. - The init() function renamed to on_reset() - on_reset() now responsible for tight-looping at the end - on_reset() now set the VTable offset to the base of the FLASH - included exhaustive list of irqs in isrs.i - interrupt routines by default flash a code indicating their isr number. - interrupt routines are weak-linked allowing the programmer to override them at-will. --- 02-usart/include/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to '02-usart/include/common.h') diff --git a/02-usart/include/common.h b/02-usart/include/common.h index 8e0cb06..f9cbe06 100644 --- a/02-usart/include/common.h +++ b/02-usart/include/common.h @@ -5,6 +5,9 @@ #include #include +#define WEAK __attribute__((weak)) +#define NORETURN __attribute__((noreturn)) + #ifndef static_assert #define static_assert(a, b) #endif -- cgit