From 3ead2db8d979bab8fd8848d24de430979698b16f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 4 Jun 2021 00:55:03 +0200 Subject: init --- src/main.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main.c (limited to 'src') diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..c0f35d7 --- /dev/null +++ b/src/main.c @@ -0,0 +1,26 @@ +#include +#include +#include + +ISR(TIMER0_OVF_vect) { + cli(); + + sei(); +} + +int main(void) { + cli(); + + /* Enable TIMER0 with interrupt */ + TCCR0 |= (1<