Hi all
I tryed to create dynamically a new Clock item with this code
Clock_Params clockParams;
Clock_Handle myClock;
Error_Block eb;
GPIO_setupCallbacks(&Board_gpioCallbacks2);
GPIO_enableInt(Board_MAGCLK, GPIO_INT_FALLING);
Error_init(&eb);
Clock_Params_init(&clockParams);
clockParams.period = 50;
clockParams.startFlag = TRUE;
clockParams.arg = (UArg)0x5555;
myClock = Clock_create(myHandler1, 5, &clockParams, &eb);
if (myClock == NULL) {
System_abort("Clock create failed");
}
// However , what i get is a Clock create failure error
// line 52: error {id:0x9550000, args:[0x0, 0x28]} .. curiousely , 52 is the line
// after the handler function declare
// the handler is declared as follow
xdc_Void myHandler1(xdc_UArg ua1)
{
GPIO_toggle(Board_LED2);
}
Should i setup Memory module in a special mode or something l;ike this ?
bye
Stefano