Part Number: TM4C129ENCPDT
Tool/software:
I want to use systick in my application inorder to wait ( it could be 200milliseconds, or 300 ms .. depending on my current application which is the AT commands) for a particular response.
I am using TivaWare_C_Series-2.2.0.295 and code compose studio IDE. As of now , I have used the following but couldnt read ticks value. How to setup the ticks value?
int main()
{
g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_240), 120000000);
SysTickEnable();
.
.
}
function() // commandTimeoutTicks is passed as an argument
{
startTime = SysTickValueGet();
while (!found) && ((SysTickValueGet()-startTime)<commandTimeoutTicks))
{
}
}