I am trying to detect the start of a BC controller, from a stopped condition(not a full restart) but there is no function available in the standard library.
I have implemented the GetSysTick function, which increments every 1ms, and then I will use this to do a compare. Only problem is when I run my project, the value of the variable I point at the function does not increase.
My line calling the function is below, with isystem_tick declared as a DWORD:
isystem_tick := GetSysTick(bDummy);
The variable bDummy is always set true by declaring it in VAR as:
bDummy : bool := true;
Has anyone got any ideas, or used this before? I am feeling particularly blonde about this, I must be missing something.
Jon.
Last edited: