GeMRTOS
Related Functions
Miscellaneous Class Reference

Related Functions

(Note that these are not member functions.)

Friends And Related Function Documentation

◆ GRTOS_CMD_MTX_TM_GET()

GRTOS_CMD_MTX_TM_GET ( { \ TIMEPRIORITY value64; \ do { \ value64.i32[1] = (unsigned) IORD(GRTOS_DRIVER_GRTOS_BASE, ADDR_SYS_MUTEX_TIME_HGH); \ value64.i32[0] = (unsigned) IORD(GRTOS_DRIVER_GRTOS_BASE, ADDR_SMP); \ } while(0); \ value64.i64; \ }  )
related

GRTOS_CMD_MTX_TM_GET Return the time the mutex is granted in system time units.

ONLY for use in critical section

Definition at line 110 of file grtos_regs.h.

◆ gu_Clock()

gt_tm gu_Clock ( gt_time  ticks)
related

Convert to gt_tm structure a time in gt_time format (time in system time units)

gu_Clock

Parameters
[in]ticksTime to convert in gt_time format
Returns
return a gt_tm structure with the time converted
Todo:
Analise to use gt_tm as time format for user

Definition at line 803 of file grtosuserfunctions.c.

◆ gu_Convert_Time()

gt_time gu_Convert_Time ( INT32  days,
INT32  hours,
INT32  minutes,
INT32  seconds,
INT32  ms 
)
related

Convert days,hours, minutes, seconds and miliseconds to system time unit.

gu_Convert_Time

Parameters
[in]daysDays
[in]hoursHours
[in]minutesMinutes
[in]secondsSeconds
[in]msmiliseconds
Returns
Time in system time units
Todo:
Define if gt_time should be used for user

Definition at line 717 of file grtosuserfunctions.c.

◆ gu_get_irq_status()

INT32 gu_get_irq_status ( void  )
related

Return the status of the system IRQs.

gu_get_irq_status

Returns
Status of the system IRQS
Todo:
Change to return status of one IRQ in order to cover more than a INT32 scope

Definition at line 735 of file grtosuserfunctions.c.

◆ gu_get_mutex_time()

gt_time gu_get_mutex_time ( void  )
related

Return the time the mutex is granted in system time units.

gu_get_mutex_time

Definition at line 785 of file grtosuserfunctions.c.

◆ gu_get_now()

gt_time gu_get_now ( void  )
related

Return the system time in system time units.

gu_get_now

Returns
Return the system time in system time units
Todo:
Analise if gu_Clock is more adecuate

Definition at line 751 of file grtosuserfunctions.c.


The documentation for this class was generated from the following files: