![]() |
Autodrone
Multi-Domain Vehicle
|
This file contains all the basic functions to run the timing of the system as well as initialize the system. More...
Go to the source code of this file.
Macros | |
#define | FRAME_COUNT 1000 |
#define | COUNT_500HZ 2 |
#define | COUNT_200HZ 5 |
#define | COUNT_100HZ 10 |
#define | COUNT_50HZ 20 |
#define | COUNT_10HZ 100 |
#define | COUNT_5HZ 200 |
#define | COUNT_1HZ 1000 |
Functions | |
void | systemInit (void) |
Initializes system. More... | |
void | SystemClock_Config (void) |
void | delayMicroseconds (uint32_t us) |
Delay in microseconds. More... | |
void | delay (uint32_t ms) |
Delay in milliseconds. More... | |
uint32_t | micros (void) |
Gets system time in microseconds. More... | |
uint32_t | millis (void) |
Gets system time in milliseconds. More... | |
void | SysTick_Handler (void) |
This function handles System tick timer. More... | |
Variables | |
uint16_t | frameCounter |
semaphore_t | frame_1000Hz |
semaphore_t | frame_500Hz |
semaphore_t | frame_200Hz |
semaphore_t | frame_100Hz |
semaphore_t | frame_50Hz |
semaphore_t | frame_10Hz |
semaphore_t | frame_5Hz |
semaphore_t | frame_1Hz |
uint32_t | deltaTime1000Hz |
uint32_t | executionTime1000Hz |
uint32_t | previous1000HzTime |
uint32_t | deltaTime500Hz |
uint32_t | executionTime500Hz |
uint32_t | previous500HzTime |
uint32_t | deltaTime200Hz |
uint32_t | executionTime200Hz |
uint32_t | previous200HzTime |
uint32_t | deltaTime100Hz |
uint32_t | executionTime100Hz |
uint32_t | previous100HzTime |
uint32_t | deltaTime50Hz |
uint32_t | executionTime50Hz |
uint32_t | previous50HzTime |
uint32_t | deltaTime10Hz |
uint32_t | executionTime10Hz |
uint32_t | previous10HzTime |
uint32_t | deltaTime5Hz |
uint32_t | executionTime5Hz |
uint32_t | previous5HzTime |
uint32_t | deltaTime1Hz |
uint32_t | executionTime1Hz |
uint32_t | previous1HzTime |
float | dt500Hz |
float | dt100Hz |
semaphore_t | systemReady |
semaphore_t | execUp |
This file contains all the basic functions to run the timing of the system as well as initialize the system.
#define COUNT_100HZ 10 |
#define COUNT_10HZ 100 |
#define COUNT_1HZ 1000 |
#define COUNT_200HZ 5 |
#define COUNT_500HZ 2 |
#define COUNT_50HZ 20 |
#define COUNT_5HZ 200 |
#define FRAME_COUNT 1000 |
void delay | ( | uint32_t | ms | ) |
Delay in milliseconds.
void delayMicroseconds | ( | uint32_t | us | ) |
Delay in microseconds.
uint32_t micros | ( | void | ) |
Gets system time in microseconds.
This can be called from within IRQ Handlers, so uses LDREX/STREX. If a higher priority IRQ or DMA or anything happens the STREX will fail and restart the loop. Otherwise the same number that was read is harmlessly written back.
uint32_t millis | ( | void | ) |
Gets system time in milliseconds.
void SystemClock_Config | ( | void | ) |
void systemInit | ( | void | ) |
Initializes system.
void SysTick_Handler | ( | void | ) |
This function handles System tick timer.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
float dt100Hz |
|
extern |
|
extern |
uint32_t executionTime1000Hz |
uint32_t executionTime100Hz |
uint32_t executionTime10Hz |
uint32_t executionTime1Hz |
uint32_t executionTime200Hz |
uint32_t executionTime500Hz |
uint32_t executionTime50Hz |
uint32_t executionTime5Hz |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
uint32_t previous1000HzTime |
uint32_t previous100HzTime |
uint32_t previous10HzTime |
uint32_t previous1HzTime |
uint32_t previous200HzTime |
uint32_t previous500HzTime |
uint32_t previous50HzTime |
uint32_t previous5HzTime |
|
extern |