Tool/software: TI-RTOS
Hi,
When I moved to new SYSBIOS 6.50.01.12 (device : C2000 F28335), I found one difference and would like to have your feedback.
In our project we have some common "code" for several applications.
The .cfg is one of the common stuff.
Depending on the application, the CPU clock may be 30Mhz, 60 Mhz, 120 Mhz, 150 Mhz.
But we do not want to indicate it in the cfg as we have an unique cfg for different application.
So between the : " void main(void)" and the BIOS_start();
I wanted to configure all what is based on the CPU clock.
So to set the period of the clock module I was doing:
// Get the period of the Clock manager in number of CPU ticks
timer_handle = Clock_getTimerHandle();
period_ticks_clock_manager = Timer_getPeriod(timer_handle);
// Calculate the number of ticks to
period_ticks_ID = (Float32_t) period_ms;
period_ticks_ID = period_ticks_ID * ((Float32_t) (freq.lo/1000u));
period_ticks_ID = period_ticks_ID / ((Float32_t) (period_ticks_clock_manager));
period_ticks_ID++; // add one tick by convention (to wait N cycles we need to set N+1)
Clock_setPeriod(handle_periodic_function, (UInt32_t) period_ticks_ID);
Clock_start(handle_periodic_function);
But now when I call "timer_handle = Clock_getTimerHandle();" it looks like the structure is not initialized by SYSBIOS because the handle does not
point on a correct structure.
could you indicate if it is normal if I am doing something not correctly ?
Thanks for your support,
Mathieu
RTOS: C2000 and SYSBIOS 6.50.01.12