aboutsummaryrefslogtreecommitdiffstats
path: root/core/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'core/main.cxx')
-rw-r--r--core/main.cxx28
1 files changed, 28 insertions, 0 deletions
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)
+ * */