While working on (loosely) integrating Microchip’s TCP/IP and USB stacks into my FreeRTOS application, I want FreeRTOS to use a different Timer (The default Timer1 is used by Microchip stacks).
The port.c conveniently has vApplicationSetupTickTimerInterrupt() declared as “weak”, allowing me to define this function, setting up a different timer, elsewhere. There also is a configuration definition for the interrupt vector (configTICK_INTERRUPT_VECTOR). This is all quite nice
The last line in function vPortIncrementTick() in port.c, clears the interruptflag in the following way:
/* Clear timer 1 interrupt. */
IFS0CLR = _IFS0_T1IF_MASK;
So, I still need to modify port.c to change timers. Not a big deal at first glance, but it means I am changing a core FreeRTOS file and that implicates there are license consequences.
What can I do?