Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
sys_time_arch.h File Reference

Implementation of system time functions for ChibiOS arch. More...

#include "mcu_periph/sys_time.h"
#include <ch.h>
#include <hal.h>
+ Include dependency graph for sys_time_arch.h:

Go to the source code of this file.

Functions

uint32_t get_sys_time_usec (void)
 Get the time in microseconds since startup.
 
uint32_t get_sys_time_usec100 (void)
 Get the time in microseconds divided by 100 since startup.
 
uint32_t get_sys_time_msec (void)
 Get the time in milliseconds since startup.
 
void sys_time_ssleep (uint8_t s)
 

Detailed Description

Implementation of system time functions for ChibiOS arch.

Mostly empty functions for Paparazzi compatibility, since ChibiOS uses different system time functions.

Definition in file sys_time_arch.h.

Function Documentation

◆ get_sys_time_msec()

uint32_t get_sys_time_msec ( void  )
extern

Get the time in milliseconds since startup.

Returns
milliseconds since startup as uint32_t

Definition at line 98 of file sys_time_arch.c.

◆ get_sys_time_usec()

uint32_t get_sys_time_usec ( void  )
extern

Get the time in microseconds since startup.

WARNING: overflows after 70min!

Returns
microseconds since startup as uint32_t

WARNING: overflows after 71min34seconds!

Returns
current system time as uint32_t

Definition at line 71 of file sys_time_arch.c.

◆ get_sys_time_usec100()

uint32_t get_sys_time_usec100 ( void  )
extern

Get the time in microseconds divided by 100 since startup.

WARNING: overflows after 7000min!

Returns
100microseconds since startup as uint32_t

Get the time in microseconds divided by 100 since startup.

WARNING: overflows after 7000 minutes!

Returns
current system time as uint32_t

Definition at line 87 of file sys_time_arch.c.

◆ sys_time_ssleep()

void sys_time_ssleep ( uint8_t  s)
extern

Definition at line 133 of file sys_time_arch.c.

References foo, and s.