Hi Dirk,
Most of my apps have what you could consider 'tasks'. However, I use
non-blocking state machines instead of the jal TASK feature, because I
fail to see the added value of this feature since it only allows
'suspend' at level0 (there are other reasons too, similar to the
discussion if/when an RTOS is worth while).
But I am happy to learn, so please enlighten me if you think I am
missing something ;)
When reading the issue, the first questions that comes to mind are
- does blinking work as expected without tasks?
- is the issue in the isr (in other words: does it take more time to
decrease the counter) or in the task/main loop (does it take more time
to see the counter is zero)?
- is the issue also there when you don't start the second task?
I had a glance at your code and it looks okay and clean to me. You
might want to take a look at the asm file to see what code is produced
by the compiler to handle both tasks (and particual, the way it
suspends / switches).
I don't recall much on tasks at the yahoo jal group, but since this
group is much larger, you might get more info there.
And in case you can't convince me to give tasks a try, you might
consider creating your 'tasks' as small, non-blocking procedures and
call them from the main loop. The delay slot sample shows how to
control the calling frequency of different tasks.
Joep
2012/9/20 dirk <
dj.b...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/jallib/-/d5RX2TFoiAgJ.
> To post to this group, send email to
jal...@googlegroups.com.
> To unsubscribe from this group, send email to
>
jallib+un...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/jallib?hl=en.