summaryrefslogtreecommitdiff
path: root/teensy/teensy_hal.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-06-15 22:33:14 -0700
committerDave Hylands <dhylands@gmail.com>2014-06-15 22:48:05 -0700
commit4f1b7fec9f103c92de40875e9a06b7decc4923f4 (patch)
treed9e0f1b0e7dd290a728c065960500ecf30967997 /teensy/teensy_hal.c
parent2547928148aefcf163953057979e14f46bef1170 (diff)
Updated teensy to build.
Refactored some stmhal files which are shared with teensy.
Diffstat (limited to 'teensy/teensy_hal.c')
-rw-r--r--teensy/teensy_hal.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/teensy/teensy_hal.c b/teensy/teensy_hal.c
new file mode 100644
index 000000000..5f162f1e7
--- /dev/null
+++ b/teensy/teensy_hal.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <stdint.h>
+
+#include "mpconfig.h"
+
+#include "Arduino.h"
+
+#include HAL_H
+
+uint32_t HAL_GetTick(void) {
+ return micros();
+}
+
+void HAL_Delay(uint32_t Delay) {
+ delay(Delay);
+}