View Single Post
  #1   Spotlight this post!  
Unread 08-01-2008, 19:01
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Interrupts in the C18 3.0 software

I'm reading interrupts.c and I notice that Initialize_Int_N() sets a register (I think it's a register) to 0, which the comment says disables the interrupt.

Why is this done? Should I change that to a 1? If so, it seems like it would make more sense to have a Set_Interrupt_N(int) function so that the interrupts can be turned on and off.

Anyway, why isn't this defaulted to 1 since users have to uncomment the ENABLE_INT_N macros for the function to "exist" in the first place? Maybe I'm just confused?
__________________
What place are we at? ... TODAI!