aboutsummaryrefslogtreecommitdiff
path: root/kernel/dmx.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-02-23 12:46:51 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-02-23 12:46:51 +0000
commit2acb123fbf5dadf743db122e26fb96da4a58a84c (patch)
tree278061ad5cbaedfcf722651c45fddf585e49ed90 /kernel/dmx.c
parent51649e040ba68812ae3666c1f1418642b734ae55 (diff)
remove priorities
simplify semaphores diff-time based time queue
Diffstat (limited to 'kernel/dmx.c')
-rw-r--r--kernel/dmx.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/kernel/dmx.c b/kernel/dmx.c
index 49ff3fd..d7369c8 100644
--- a/kernel/dmx.c
+++ b/kernel/dmx.c
@@ -24,11 +24,9 @@
#include "kernel.h"
#include "tasks.h"
-enum { RT, High, Low };
-
struct adcarg adcarg;
struct ppmarg ppmarg = { adcarg.value };
-struct rgbarg rgbargs = { 0, 0, 0, &adcarg.value[0] };
+struct rgbarg rgbargs = { 0, 0, 0, adcarg.value };
struct pwmarg pwmargs[] = {
{ &rgbargs.r, PB2, 1 },
{ &rgbargs.g, PB3, 2 },
@@ -42,13 +40,13 @@ main()
lcd_init();
init(48);
- exec(heartbeat, NULL, 48, Low);
- exec(rgb, &rgbargs, 72, High);
- exec(pwm, &pwmargs[0], 56, RT);
- exec(pwm, &pwmargs[1], 56, RT);
- exec(pwm, &pwmargs[2], 56, RT);
- exec(adc, &adcarg, 96, Low);
- exec(clock, NULL, 96, Low);
+ exec(heartbeat, NULL, 48);
+ exec(rgb, &rgbargs, 72);
+ exec(pwm, &pwmargs[0], 56);
+ exec(pwm, &pwmargs[1], 56);
+ exec(pwm, &pwmargs[2], 56);
+ exec(adc, &adcarg, 96);
+ exec(clock, NULL, 96);
#if 0
exec(cmd, &rgbargs, 48);
exec(ppm, &ppmarg, 48);