timer1_detachInterrupt(); issue
Posted: Sat Dec 26, 2015 10:36 am
After timer1_detachInterrupt(); timer/counter not call handler function at all. I cant enable it with timer1_attachInterrupt(handler);
For test I added 1 line in code - timer1_detachInterrupt();. It stopped all.
Any solutions?
For test I added 1 line in code - timer1_detachInterrupt();. It stopped all.
Code: Select all
timer1_isr_init();
timer1_enable(0, 0, 1);
timer1_write(120000);
timer1_detachInterrupt();
timer1_attachInterrupt(handler);
Any solutions?