Forum Discussion
Altera_Forum
Honored Contributor
21 years agouCos not setting timers
uCos does not appear to explicitly set the HW timer period for its interval timer. If a boot loader changes the default timer settings for this timer, when uCos boots it will assume the defaul...
Altera_Forum
Honored Contributor
21 years agoSimple enough.
But isn't the uCos init code assuming both that the timer is set correctly AND that it is set to the default? I was thinking these assumptions could easily be checked, or that always explicitly writing to the desired (default) value to the period registers would be OK, whether or not they really exist. With SOPC, the register space for the timers has the same size regardless of options, so there is no risk of accessing the wrong register. This might not be true for different HW, but init is expected to be custom anyway. I don't think you would ever want a uCos app to run at timer interval different from what it thinks it is. Robustness?