Page 1 of 1

Changing uCOS TICKS_PER_SECOND

Posted: Sat Oct 17, 2009 5:46 pm
by Jeff
I want to change the rate at which the OS runs to allow better control of higher rate tasks.
It appears that the uCOS system timer relies on the TICKS_PER_SECOND #define in constants.h to set the rate of the timer interrupt. It also appears though that alll the uCOS functions are compiled into one of the libraries (which one?), and so they need to be rebuilt to effect this change. I created my own library by building all the files that include constants.h, and inserted this library into the linker list ahead of the others, but this results in trap errors at runtime. :?

Are there instructions on the contents of each of the libraries and how to rebuild them? Twould be useful to have the inventory for all of them, if not the project files for each.

Re: Changing uCOS TICKS_PER_SECOND

Posted: Sat Oct 17, 2009 6:23 pm
by Jeff
Ok, I'll answer my own question.. the "rebuild all system files" under the NBEclipse pulldown does the trick. Thanks to the Wiki page.