diff options
| author | Dave Hylands <dhylands@gmail.com> | 2014-06-15 22:33:14 -0700 |
|---|---|---|
| committer | Dave Hylands <dhylands@gmail.com> | 2014-06-15 22:48:05 -0700 |
| commit | 4f1b7fec9f103c92de40875e9a06b7decc4923f4 (patch) | |
| tree | d9e0f1b0e7dd290a728c065960500ecf30967997 /teensy/teensy_hal.c | |
| parent | 2547928148aefcf163953057979e14f46bef1170 (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.c | 16 |
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); +} |
