clay_shooter 2 Posted February 24, 2015 Share Posted February 24, 2015 I worked (hacked) on the MSP430 TwoMSecTimer library until it became the AnyMSecTimer library that can be used on MSP430 or on the Stellaris / Tiva. It uses one of the timers when running on an MSP430 and a Systick handler on the bigger boards. Register your function from your ino file with the timer along with an interval in msec. The registered function will be invoked at that interval. A sample app is on github. https://github.com/freemansoft/build-monitor-devices/tree/master/ti_launchpad_rgb_2 -- setup -- AnyMsTimer::set(STATE_STEP_INTERVAL, my_function); AnyMsTimer::start(); -- function signature -- void my_function(){ // remember to do as little as possible here because interrupts are masked off } http://joe.blog.freemansoft.com/2015/02/energia-code-on-timer-with-tiva.html Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.