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
propsideworkspace
Learn
Simple Libraries
Utility
libsimpletools
source
pause.c
1
/*
2
* @file pause.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 pause 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
#include "simpletools.h"
// simpletools function prototypes
18
19
void
pause(
int
time)
// pause function definition
20
{
// If st_pauseTicks not initialized, set it up to 1 ms.
21
// if(!st_pauseTicks) set_pause_dt(CLKFREQ/1000);
22
time *= st_pauseTicks;
// Calculate system clock ticks
23
waitcnt(time+CNT);
// Wait for system clock target
24
}
25
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12