aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cxx
diff options
context:
space:
mode:
authorajmeyer@mit.edu <ajmeyer@mit.edu@749a229e-a60e-11de-b98f-4500b42dc123>2009-12-19 08:03:54 +0000
committerajmeyer@mit.edu <ajmeyer@mit.edu@749a229e-a60e-11de-b98f-4500b42dc123>2009-12-19 08:03:54 +0000
commit7021adc50a041bfb69bc4432b712aa07ef710ca3 (patch)
tree4dcc3be7576e0ad5dd52039d3d99f3c6f99ea448 /src/main.cxx
parenta8aaabae4c1cc64a01d740a436336ca31c1f79ba (diff)
downloadlibrambutan-7021adc50a041bfb69bc4432b712aa07ef710ca3.tar.gz
librambutan-7021adc50a041bfb69bc4432b712aa07ef710ca3.zip
added USB support (TX over virtual com port), the linker modifications to work with the bootloader, a modified libcs-lanchon-stm32.a, and the arduino-required main.cxx and WProgram.h
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@72 749a229e-a60e-11de-b98f-4500b42dc123
Diffstat (limited to 'src/main.cxx')
-rw-r--r--src/main.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main.cxx b/src/main.cxx
new file mode 100644
index 0000000..7734d6e
--- /dev/null
+++ b/src/main.cxx
@@ -0,0 +1,21 @@
+int main(void)
+{
+ init();
+ setup();
+
+ while (1) {
+ loop();
+ }
+ return 0;
+}
+
+
+/* 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)
+ * */