Can I remove halTimerIsr() if I'm not using the buzzer or any timer routines in my application?
Categories:
halTimerIsr(), the interrupt for user
timers TMR1 and TMR2, is used in the default EM250 HAL for operating
the buzzer device (via PWM). For customers whose custom hardware isn't
using the user timers, this FAQ explains how to reduce the HAL's flash
footprint by eliminating the code for this interrupt service routine.
The halTimerIsr() routine is a required interrupt service routine [ISR], as dictated by Ember's provided cstartup code (cstartup.xap).
However, the ISR does not necessarily need to be populated. (Nothing
in the stack relies on the behavior of this ISR.) If your application
does not make use of this ISR for application timer interrupts, the
function can be safely stubbed out (empty function definition) in order
to reduce code size impact in the HAL (but still providing the
necessary interrupt vector for the TMR1 and TMR2 peripherals).
- Login to post comments









