Interrupt handler in component
Posted: Wed Aug 07, 2019 10:30 pm
A bug in 8.2
I tried to create a component that uses an interrupt handler. Unfortunately the name mangling used doesn't seem to apply to the macro called in the enable interrupt icon.
A simple example: Which creates a simple component with an Init macro. A program that attempts to use this: The C generated for the interrupt handler:
& the interrupt setup using the wrong name is:
Which gives compilation errors
Is there a way around this - force FC to use a particular name etc ??
Martin
I tried to create a component that uses an interrupt handler. Unfortunately the name mangling used doesn't seem to apply to the macro called in the enable interrupt icon.
A simple example: Which creates a simple component with an Init macro. A program that attempts to use this: The C generated for the interrupt handler:
Code: Select all
void FCD_0ff51_int_bug1__interrupt_handler()
{
//Local variable definitions
MX_UINT8 FCL_N;
// .n = 1
FCL_N = 1;
}
Code: Select all
ISR(USART0_RX_vect)
{
FCM_interrupt_handler();
}
Is there a way around this - force FC to use a particular name etc ??
Martin