View Single Post
  #2   Spotlight this post!  
Unread 07-03-2005, 07:03
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Interrupt question

Disclaimer: I've never actually gotten them working, so you might not want to trust me...

Two things which you have to do with Kevin's code to make it actually do something:
  • Put some implementation in the interrupt handler (in user_routines_fast.c). Actually, Kevin has been extremely helpful by having a function call for each interrupt in there already. Just go into interrupts.c and find the appropriate handler for the one you want. (Read the comments if it is unclear. He does and excellent job with those. )
  • Turn them on! This is actually two things, (1) make sure you call the interrupt initializers you want in user_initialization (in user_routines.c) and (2) actually enable the interrupt in the initializing function. Read the comments at the bottom of the initializing routine to see how.
__________________