ut-ras/Rasware2013 — pull request #35 by geky (2013-12-10 21:08:29+00:00)
Title: Low priority scheduler

Moves the scheduler interrupt to WTimer5 to run time module tasks in a low priority. This will be lower than any other interrupt we use with the exception of the I2C4 and I2C5 interrupts. This also increases the length between scheduler delays from 32bits to 64bits although that doesn't really change much. The cost is two less supported pwm frequencies now only supporting 10 possible frequencies although we have only ever used up to 2 so I don't believe this will be an issue.

This is the current mapping of timers in raslib
* SysTick -> used in timer.c for global clock
* Timer0-Timer5 -> available for users
* WTimer0-WTimer4 -> used in pwm.c for pwm generation; separate halftimer needed for each frequency
* WTimer5 -> used in time.c for scheduler