Hi,
I've been trying to set up a timer to call a program function at regular intervals. I'm using HALCoGen to generate my setup parameters, but am new to it and TI microprocessors in general.
I'm having a compilation error that I can't get around. I think the relevant bits of code are:
#include "FreeRTOS.h"
#include "os_task.h"
#include "os_timer.h"
#include "os_task.h"
void ButtonCallback(xTimerHandle theTimer);
Main:
// TimerHandle_t buttonTimer; //also tried this declaration with no success. Have seen examples implemented both ways
xTimerHandle buttonTimer;
buttonTimer = xTimerCreate("ButtonTimer", 1000, pdTRUE, (void*) 1, ButtonCallback );
xTimerStart(buttonTimer, 0 );
vTaskStartScheduler();
for(;;){...}
I'm finding that the xTimerStart line gives the following error:
#169 argument of type "void *" is incompatible with parameter of type "BaseType_t *"
I'm using FreeRTOS v8.2.0
Halcogen v.04.05.01
CCS V6.1.2.00015
I have to imagine there's something trivial I'm missing here, because I can't find an instance of someone else having the same issue. Any thoughts on why this is happening?
Thanks!