#### bug13

Joined Feb 13, 2012
1,995
Hi team,

I got this little task schedular that I written a while back, I have been using it for a few projects now. And I thought maybe it's a good ideal to share it here, get some feedbacks as well.

For those who are interested: (tested on pic18 and pic24, XC8 and XC16)
https://github.com/jmswu/schedular

Any feedbacks, suggestions and/or criticisms are welcome.

Example:
Code:
uint32_t get_ticks(void); // get system tick, usually with a hardware timer

void main(){

schedular_init(get_ticks);
schedular_sort(); // optional, this function is yet to be implement
while(1){
}
}

uint32_t get_ticks(void{
// return system ticks generated by hardware timer
}

}