summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c26
1 files changed, 26 insertions, 0 deletions
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 <avr/io.h>
+#include <avr/interrupt.h>
+#include <stdint.h>
+
+ISR(TIMER0_OVF_vect) {
+ cli();
+
+ sei();
+}
+
+int main(void) {
+ cli();
+
+ /* Enable TIMER0 with interrupt */
+ TCCR0 |= (1<<CS00);
+ TIMSK |= (1<<TOIE0);
+
+ /* Go! */
+ sei();
+
+ while(1){
+
+ }
+
+ return 0;
+}