Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Implementation of system time functions for ChibiOS arch. More...
Go to the source code of this file.
Functions | |
uint32_t | get_sys_time_usec (void) |
Get the time in microseconds since startup. More... | |
uint32_t | get_sys_time_usec100 (void) |
Get the time in microseconds divided by 100 since startup. More... | |
uint32_t | get_sys_time_msec (void) |
Get the time in milliseconds since startup. More... | |
void | sys_time_usleep (uint32_t us) |
sys_time_usleep(uint32_t us) More... | |
void | sys_time_msleep (uint16_t ms) |
void | sys_time_ssleep (uint8_t s) |
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.
uint32_t get_sys_time_msec | ( | void | ) |
Get the time in milliseconds since startup.
Definition at line 98 of file sys_time_arch.c.
uint32_t get_sys_time_usec | ( | void | ) |
Get the time in microseconds since startup.
WARNING: overflows after 70min!
WARNING: overflows after 71min34seconds!
Definition at line 71 of file sys_time_arch.c.
uint32_t get_sys_time_usec100 | ( | void | ) |
Get the time in microseconds divided by 100 since startup.
WARNING: overflows after 7000min!
Get the time in microseconds divided by 100 since startup.
WARNING: overflows after 7000 minutes!
Definition at line 87 of file sys_time_arch.c.
void sys_time_msleep | ( | uint16_t | ms | ) |
Definition at line 128 of file sys_time_arch.c.
void sys_time_ssleep | ( | uint8_t | s | ) |
Definition at line 133 of file sys_time_arch.c.
References s.
void sys_time_usleep | ( | uint32_t | us | ) |
using intermediate 64 bits variable to avoid wrapping
max sleep time is around 10 days (2^32 / CH_CFG_ST_FREQUENCY) at 10kHz
Definition at line 116 of file sys_time_arch.c.
Referenced by bf_delayMicroseconds(), cyrf6936_init(), initializeSensor(), main(), pcap01_init(), px4flash_event(), readRegister_blocking(), received_spektrum_soft_bind(), send_spektrum_bind(), spektrum_bind(), spektrum_try_bind(), VCOM_putchar(), video_thread_function(), w5100_init(), and xbee_dl_init().