From 1d3861ef93f8423176c6010ab606abdab00a7cbd Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 31 Mar 2010 08:52:45 +0800 Subject: Major hierarchy reorganization; see README. copy-to-ide and Makefile updated to conform; .gitignore added; LICENSE added --- core/main.cxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 core/main.cxx (limited to 'core/main.cxx') diff --git a/core/main.cxx b/core/main.cxx new file mode 100644 index 0000000..24b6483 --- /dev/null +++ b/core/main.cxx @@ -0,0 +1,28 @@ +int main(void) +{ + init(); + setup(); + + while (1) { + loop(); + } + return 0; +} + +/* Required for C++ hackery */ +/* TODO: This really shouldn't go here... move it later + * */ +extern "C" void __cxa_pure_virtual(void) { + while(1) + ; +} + +/* Implemented: + * void pinMode(pin, mode) + * void digitalWrite(pin, value) + * uint32_t digitalRead(pin) + * uint32_t analogRead(pin) + * void randomSeed(seed) + * long random(max) + * long random(min, max) + * */ -- cgit v1.2.3