Tool/software: TI C/C++ Compiler
I have an question about the WEAK pragma of the TI/ARM compiler(i use version 16.9.x).
The code snippet below is from an project where i used GCC as the compiler for an Cortex M3 MCU(non TI mcu).
It is from the startup file of that project, and declares for each interrupt vector an weak function prototype
and defaults to the Default_Handler using the pragma.
#define WEAK __attribute__ ((weak))
void WEAK TIMER0_IRQHandler(void);
__attribute__ ((used,section(".isr_vector"))) void (* const g_pfnVectors[])(void) = {
TIMER0_IRQHandler, /*!< 1: Timer0 */
}
#pragma weak TIMER0_IRQHandler = Default_Handler
In the TI ARM compiler manual i couldn't find any thing about how to let an
weak function prototype default to an other function.
Is there a way to do this in the TI compiler?
Thanks