View Single Post
  #213   Spotlight this post!  
Unread 14-01-2008, 22:42
spack spack is offline
Registered User
#1391
 
Join Date: Feb 2005
Location: Westtown PA
Posts: 6
spack is an unknown quantity at this point
Re: New C18 3.0+ Compatible FRC Code

The ISR linker issue occurs if encoders_3 and beyond are enabled because...

ENABLE_INT_3_6 must be defined in ifi_frc.h, in order to use encoders in the range 3_6

This causes 'calls' to the ISR routines from ifi_frc.c lines 326 to 338.

But if this code block is enabled, all the interrupt code must exists in encoder.c.

That only happens if ENABLE_ENCODER_3 through ENABLE_ENCODER_6 are ALL defined in encoder.h which compiles in ALL the ISRs in encoder.c.

The define hierarchy needs to be fixed, or use all of 3_6 ISRs or none of them.

Chad