Wed Jul 4 13:16:25 EDT 2012


Couple of weeks off the project due to work and holidays.  Next thing
to do is to make a strategy for having 2 tasks: USB driver and main
app.  Some options

- state machine polling loop
- blocking tasks
- ISR + main task

The usefulness of these depends on the application.  ISR+main seem to
be the simplest approach.  Trouble on PIC18 is that tasks need to
share the return stack, other than that task switching is fast.  The
USB driver can easily be written as a state machine so it can run in a
polling loop or from an ISR.

Let's go for slow ISR for USB, then move from there.