#include "types.h"#include "config.h"Go to the source code of this file.
Defines | |
| #define | T0_PCLK_DIV 5 |
| #define | sysTICSperSEC (PCLK / T0_PCLK_DIV) |
| #define | ONE_US (uint32_t)(( 1e-6 * sysTICSperSEC) + .5) |
| #define | ONE_MS (uint32_t)(( 1e-3 * sysTICSperSEC) + .5) |
| #define | TWO_MS (uint32_t)(( 2e-3 * sysTICSperSEC) + .5) |
| #define | FIVE_MS (uint32_t)(( 5e-3 * sysTICSperSEC) + .5) |
| #define | TEN_MS (uint32_t)(( 10e-3 * sysTICSperSEC) + .5) |
| #define | TWENTY_MS (uint32_t)(( 20e-3 * sysTICSperSEC) + .5) |
| #define | THIRTY_MS (uint32_t)(( 30e-3 * sysTICSperSEC) + .5) |
| #define | FIFTY_MS (uint32_t)(( 50e-3 * sysTICSperSEC) + .5) |
| #define | HUNDRED_MS (uint32_t)((100e-3 * sysTICSperSEC) + .5) |
| #define | ONE_FIFTY_MS (uint32_t)((150e-3 * sysTICSperSEC) + .5) |
| #define | QUARTER_SEC (uint32_t)((250e-3 * sysTICSperSEC) + .5) |
| #define | HALF_SEC (uint32_t)((500e-3 * sysTICSperSEC) + .5) |
| #define | ONE_SEC (uint32_t)(( 1.0 * sysTICSperSEC) + .5) |
| #define | TWO_SEC (uint32_t)(( 2.0 * sysTICSperSEC) + .5) |
| #define | FIVE_SEC (uint32_t)(( 5.0 * sysTICSperSEC) + .5) |
| #define | TEN_SEC (uint32_t)((10.0 * sysTICSperSEC) + .5) |
Functions | |
| void | initSysTime (void) |
| uint32_t | getSysTICs (void) |
| uint32_t | getElapsedSysTICs (uint32_t startTime) |
| void | pause (uint32_t duration) |
| #define HUNDRED_MS (uint32_t)((100e-3 * sysTICSperSEC) + .5) |
| #define ONE_FIFTY_MS (uint32_t)((150e-3 * sysTICSperSEC) + .5) |
| #define QUARTER_SEC (uint32_t)((250e-3 * sysTICSperSEC) + .5) |
| #define T0_PCLK_DIV 5 |
| #define THIRTY_MS (uint32_t)(( 30e-3 * sysTICSperSEC) + .5) |
| #define TWENTY_MS (uint32_t)(( 20e-3 * sysTICSperSEC) + .5) |
| uint32_t getSysTICs | ( | void | ) |
| void initSysTime | ( | void | ) |
| void pause | ( | uint32_t | duration | ) |
1.4.7