PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
simple
timeTicks.c
1
/*
2
* @file timeTicks.c
3
*
4
* @author Andy Lindsay
5
*
6
* @version 0.85
7
*
8
* @copyright Copyright (C) Parallax, Inc. 2012. See end of file for
9
* terms of use (MIT License).
10
*
11
* @brief mark function source, see simpletools.h for documentation.
12
*
13
* @detail Please submit bug reports, suggestions, and improvements to
14
* this code to editor@parallax.com.
15
*/
16
17
18
#include "simpletools.h"
19
20
int
ms;
21
int
us;
22
int
st_msTicks;
23
int
st_usTicks;
24
int
st_iodt;
25
int
st_timeout;
26
int
st_pauseTicks;
27
28
__attribute__((constructor))
// Flag for running at startup
29
void timeTicksSetup()
30
{
31
st_msTicks = CLKFREQ/1000;
32
st_usTicks = CLKFREQ/1000000;
33
34
ms = st_msTicks;
35
us = st_usTicks;
36
37
st_iodt = st_usTicks;
38
st_pauseTicks = st_msTicks;
39
st_timeout = 250*st_msTicks;
40
}
41
42
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12