gparmer / cFE2cos

0 stars 1 forks source link

Implement PSP timer related methods #3

Open base0x10 opened 8 years ago

base0x10 commented 8 years ago

uint32 CFE_PSP_Get_Timer_Tick(void)

CFE_PSP_Get_Timer_Tick returns the underlying OS timer tick value It is used for the performance monitoring software

uint32 CFE_PSP_GetTimerTicksPerSecond(void)

CFE_PSP_GetTimerTicksPerSecond provides the resolution of the least significant 32 bits of the 64 bit time stamp returned by CFE_PSP_Get_Timebase in timer ticks per second. The timer resolution for accuracy should not be any slower than 1000000 ticks per second or 1 us per tick

uint32 CFE_PSP_GetTimerLow32Rollover(void)

CFE_PSP_GetTimerLow32Rollover provides the number that the least significant 32 bits of the 64 bit time stamp returned by CFE_PSP_Get_Timebase rolls over. If the lower 32 bits rolls at 1 second, then the CFE_PSP_TIMER_LOW32_ROLLOVER will be 1000000. if the lower 32 bits rolls at its maximum value (2^32) then CFE_PSP_TIMER_LOW32_ROLLOVER will be 0.

void CFE_PSP_Get_Timebase(uint32 *Tbu, uint32 *Tbl)

Provides a common interface to system timebase. This routine is in the BSP because it is sometimes implemented in hardware and sometimes taken care of by the RTOS.

void CFE_PSP_GetTime(OS_time_t *LocalTime)

This call gets the local time from the hardware on the Vxworks system

uint32 CFE_PSP_Get_Dec(void)

provides a common interface to decrementer counter. this routine is in the bsp because it is sometimes implemented in hardware and sometimes taken care of by RTOS