Thank you both.
I created the timers, stated them but it gives the āundefined referenceā error further below.
I have included the timers.s and other freeRTOS .h files but still gives undefined referenceā¦
#include "freeRTOS.h"
#include "queue.h"
#include "task.h"
#include "timers.h"
TimerHandle_t xLEDTimer_ErrorLED;
TimerHandle_t xLEDTimer_HostLED;
TimerHandle_t xLEDTimer_TestLED;
void CreateLEDsSoftwareTimers()
{
xLEDTimer_ErrorLED = xTimerCreate( "xSoftTmr_ErrorLED",
100,
pdTRUE,
( void * ) 0,
CBK_LEDProcessing_ErrorLED);
xLEDTimer_HostLED = xTimerCreate( "xSoftTmr_HostLED",
100,
pdTRUE,
( void * ) 0,
CBK_LEDProcessing_HostLED);
xLEDTimer_TestLED = xTimerCreate( "xSoftTmr_TestLED",
100,
pdTRUE,
( void * ) 0,
CBK_LEDProcessing_TestLED);
}
void StartLEDsSoftwareTimers()
{
xTimerStart(xLEDTimer_ErrorLED, 0);
xTimerStart(xLEDTimer_HostLED, 0);
xTimerStart(xLEDTimer_TestLED, 0);
}
I am getting these errors for each xTimerStart() inside the in the StartLEDsSoftwareTimers():
build/default/production/_ext/1360937237/panel_UI_control.o: In function `StartLEDsSoftwareTimers':
d:/dropbox (tdl)/tdl design/rational/firmware_2021_op60_rtos/firmware/src/panel_ui_control.c:113: undefined reference to `xTimerGenericCommand'
d:/dropbox (tdl)/tdl design/rational/firmware_2021_op60_rtos/firmware/src/panel_ui_control.c:114: undefined reference to `xTimerGenericCommand'
d:/dropbox (tdl)/tdl design/rational/firmware_2021_op60_rtos/firmware/src/panel_ui_control.c:115: undefined reference to `xTimerGenericCommand'
What is causing it?
Thank you