PDA

View Full Version : a quick function question


Kashi Chan
03-06-2005, 08:06 PM
just a quick question. is it alright to declare a function in user_routines.h declare and write the function variables and function itself in user_routines_fast.c, and use them in user_routines_fast.c?

whakojacko
03-06-2005, 08:10 PM
sure, just make sure your including user_routines.h (you should be already though). and whne you mean declare in the ehader i assumed you meant prototype

Kashi Chan
03-06-2005, 08:13 PM
yeah sorry about the confusion ^.^

Kashi Chan
03-06-2005, 08:44 PM
sorry but kind of confused with the interrupt.zip i downloaded, do i just input my code normally and the digital inputs for 1-6 will automatically interrupt and do what its supposed to do?