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
Propeller GCC Demos
hello
hello.c
1
/*
2
* This is a non-traditional hello demo for Propeller-GCC.
3
* The demo repeats printing every 100ms with the iteration.
4
* It uses waitcnt instead of sleep so it will fit in a COG.
5
*/
6
#include <stdio.h>
7
#include <propeller.h>
8
9
int
main
(
void
)
10
{
11
int
n = 1;
12
while
(1) {
13
waitcnt(CLKFREQ/10+CNT);
14
printf(
"Hello World %d\n"
, n);
15
n++;
16
}
17
return
0;
18
}
main
int main(void)
Definition:
GraphicsTest.c:20
Generated on Sat Aug 27 2016 00:58:10 for PropWare by
1.8.12