Re: How to remove an interrupt vector?

Scott Henion <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
On 7/16/2013 12:43 PM, trashrobber wrote:
> I have an interrupt vector handling timer B 
>
> SetVectIntern(0x0B, _TimerBISR);
>
> I don't wan't to disable timer B I just want to quit handling interrupts. 
>
> is there a better way than this?
>
> void empty(void){};
>
> SetVectIntern(0x0B, empty); //?? 

There is no reason to remove the vector. Just disable the source of the
interrupt (write 0 to the match reg interrupt bits in TBCSR.)

If you were to put a vector to something that did not handle the
interrupt (a null function), it would interrupt forever or disable all
interrupts on that level.

-- 
------------------------------------------
     Scott G. Henion, Consultant
Web site:    http://SHDesigns.org
------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.