summaryrefslogtreecommitdiffstats
path: root/weak.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-05-28 20:33:43 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-05-28 20:33:43 +0100
commit9c5553fbd041724c09f5e602be4b37f5bc61b1d7 (patch)
tree4115d295e4043b5f17f72f16c29e20747e6568f9 /weak.c
parentde1f8661e0900c6794279e758a141e31d8b506ae (diff)
downloadfmk-9c5553fbd041724c09f5e602be4b37f5bc61b1d7.tar.gz
fmk-9c5553fbd041724c09f5e602be4b37f5bc61b1d7.tar.xz
fmk-9c5553fbd041724c09f5e602be4b37f5bc61b1d7.zip
uart: Make the uart module optional
Making the uart module optional makes an -Os compile much smaller.
Diffstat (limited to 'weak.c')
-rw-r--r--weak.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/weak.c b/weak.c
new file mode 100644
index 0000000..8d8a726
--- /dev/null
+++ b/weak.c
@@ -0,0 +1,3 @@
+void uart0_isr(void);
+__attribute__ ((weak))
+void uart0_isr(void) { }