diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-06-04 00:55:03 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-06-04 00:55:03 +0200 |
commit | 3ead2db8d979bab8fd8848d24de430979698b16f (patch) | |
tree | d6dbebcc4949faef881bb08ecfd59e4548a185ef /src | |
download | analog_instruments-3ead2db8d979bab8fd8848d24de430979698b16f.tar.gz |
init
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 26 |
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; +} |