{\r
uint32_t timer = get_spr(SPR_DECAR) - get_spr(SPR_DEC);\r
return (timer);\r
--}
--
--TickType Os_SysTickGetElapsedValue( uint32_t preValue ) {
-- uint32_t curr;
-- uint32_t max;
--
-- curr = get_spr(SPR_DEC);
-- max = get_spr(SPR_DECAR);
-- return Os_CounterDiff((max - curr),preValue,max);
--}
++}\r
++\r
++TickType Os_SysTickGetElapsedValue( uint32_t preValue ) {\r
++ uint32_t curr;\r
++ uint32_t max;\r
++\r
++ curr = get_spr(SPR_DEC);\r
++ max = get_spr(SPR_DECAR);\r
++ return Os_CounterDiff((max - curr),preValue,max);\r
++}\r
\r