PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Propeller GCC Demos
graphics
init.c
1
#include <unistd.h>
2
#include <propeller.h>
3
__attribute__((constructor))
void
init(
void
) {
4
/* assert tx pin low for QuickStart */
5
OUTA
&= ~(1<<30);
6
DIRA
|= (1<<30);
7
/* wait a second for terminal to start */
8
//sleep(1);
9
waitcnt
(
CLKFREQ
+
CNT
);
10
}
OUTA
#define OUTA
Use to set output pin states when corresponding DIRA bits are 1.
Definition:
propeller1.h:157
CLKFREQ
#define CLKFREQ
Returns the current clock frequency.
Definition:
propeller.h:46
waitcnt
#define waitcnt(a)
Wait until system counter reaches a value.
Definition:
propeller.h:176
CNT
#define CNT
The system clock count.
Definition:
propeller1.h:151
DIRA
#define DIRA
Use to set pins to input (0) or output (1).
Definition:
propeller1.h:161
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17