This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using per_test srf04_CC2430 example (swrc019f), Error[e46]: Undefined external "halJoystickMoveISR" referred in basic_rf

Hello,

i'm trying to use joystick interruptions in the per_test example given in swr019f. When i compile it without editing it's all right, but if i try to call some of the joystick interruption functions i get the error:

Error[e46]: Undefined external "halJoystickXXX" referred in basic_rf 

I can't understand it... those functions are not used in the basic_rf file....and the basic_rf and halJoystick path are added to the include directories correctly.

I can use the functions halJoystickInit, halJoystickPushed and halJoystickGetDir without problems (the non-interruption functions)

I can use halJoystickIntConnect and halJoystickIntEnable, adding the line "#define JSTK_IRQ" at the beginning of the halJoystick.c file (I don't understand the reason it is undefined... or where it is supposed to be defined... perhaps the problem is that is already defined MRFI...  at the beginning of the file it is written:

#define JSTK_IRQ //-> my trick!!!

#define xJSTK_IRQ
// The interrupt vectors of hal_digio conflict with JSTK_IRQ
#if defined(MRFI) && defined(JSTK_IRQ)
#undef JSTK_IRQ
#endif)

Although i am able to make the program, the up/down/left/right events don't interrupt my program, only the pushed event does.

I call: halJoystickInit(), then halJoystickIntConnect with the different events and their handlers (I've already checked the joystick_isr_tbl points to my handler functions), and finally halJoystickIntEnable once (with any parameter cause it is not used...). I suppose that every time a direction interruption is called, I need to clear it with halJoystickIntClear() although i haven't had the chance yet, cause i never get there... One the other hand the pushed interruption does work (without clearing)... I can't guess the problem... perhaps it is related to the "define" thing, i don't know...

Please, help!!! Thank you very much.