diff options
author | Julian T <julian@jtle.dk> | 2020-02-11 12:24:56 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-02-11 12:24:56 +0100 |
commit | 6db1a2cdd3b96731f2e092d55d8c2136eabc52d0 (patch) | |
tree | 2be8fae8ce82d708ed9f00f376dda14420850e80 /sem1/osc/mm8/mm8.ino | |
parent | 57305119e05559c1c37e903aef89cd43f44c42c9 (diff) |
Rename and cleanup
Diffstat (limited to 'sem1/osc/mm8/mm8.ino')
-rw-r--r-- | sem1/osc/mm8/mm8.ino | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sem1/osc/mm8/mm8.ino b/sem1/osc/mm8/mm8.ino deleted file mode 100644 index f47306d..0000000 --- a/sem1/osc/mm8/mm8.ino +++ /dev/null @@ -1,47 +0,0 @@ -// Spg kernel -#include <krnl.h> - -#define PRIO 10 -#define STACK 100 - -char stackFast[STACK]; -struct k_t *semFast, *fastTask; - -void fast() { - /* Gotta go fast(10 Hz) */ - k_set_sem_timer(semFast, 1000); - for(;;) { - k_wait(semFast, 0); - k_eat_ticks(90); - } -} - -void setup() { - pinMode(13, OUTPUT); - - PORTB |= 0x20; - delay(1000); - PORTB &= 0xDF; - delay(200); - - k_init(1, 1, 0); - - fastTask = k_crt_task(fast, PRIO, stackFast, STACK); - semFast = k_crt_sem(0, 2); - - k_start(1); - PORTB |= 0x20; -} - -void loop() {} - -extern "C" { - - void k_breakout() { - if( pRun->nr == 0 ) { - PORTB |= 0x20; - } else { - PORTB &= 0xDF; - } - } -} |