problem with priotasker.fs
David McNab <[email protected]> Thu, 02 Dec 2004 14:07:23 +1300
| Newsgroups | gmane.comp.lang.forth.picforth |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm having trouble compiling progs using priotasker.fs
To simplify things, I tried the following example (adapted from
taskexample.fs, changing it from using multitasker.fs to priotasker.fs):
include priotasker.fs
1 pin-b led1
2 pin-b led2
1 task task.foo
: foo ( -- ) led1 toggle ;
1 task task.bar
: bar ( -- ) led2 toggle ;
\ Main program
main : main ( -- )
$f9 trisb !
multitasker
;
\ Configuration
fosc-hs set-fosc \ High-speed oscillator
The example fails to compile, complaining about 'invalid memory address'
at the 'multitasker' statement.
Am I doing something wrong, or is priotasker broken with latest PicForth?
--
Cheers
David