aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr/main.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-10 23:00:17 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-03-11 12:15:07 -0500
commite5d7e593ec8a1587983e2ca9504af6b4e9d17578 (patch)
tree35ca4517e8f043e98659ceca7720fb1b08bef776 /src/avr/main.c
parent69b927bfe9f9fd7a6ffe664a188ae4ad9462fd75 (diff)
downloadkutter-e5d7e593ec8a1587983e2ca9504af6b4e9d17578.tar.gz
kutter-e5d7e593ec8a1587983e2ca9504af6b4e9d17578.tar.xz
kutter-e5d7e593ec8a1587983e2ca9504af6b4e9d17578.zip
generic: Move generic parts of sam3x8e timer.c to generic directory
Most of sam3x8e/timer.c is going to be platform agnostic for any board with standard irq handling. Move the generic code into a new file generic/timer.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr/main.c')
-rw-r--r--src/avr/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/avr/main.c b/src/avr/main.c
index 7651ab4a..4a3f871a 100644
--- a/src/avr/main.c
+++ b/src/avr/main.c
@@ -4,9 +4,13 @@
//
// This file may be distributed under the terms of the GNU GPLv3 license.
+#include "autoconf.h" // CONFIG_MCU
+#include "command.h" // DECL_CONSTANT
#include "irq.h" // irq_enable
#include "sched.h" // sched_main
+DECL_CONSTANT(MCU, CONFIG_MCU);
+
// Main entry point for avr code.
int
main(void)