2014-06-16 01:33:14 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2015-01-01 16:13:30 -05:00
|
|
|
#include "py/mpconfig.h"
|
2014-06-16 01:33:14 -04:00
|
|
|
|
|
|
|
#include "Arduino.h"
|
|
|
|
|
2014-07-02 08:42:37 -04:00
|
|
|
#include MICROPY_HAL_H
|
2014-06-16 01:33:14 -04:00
|
|
|
|
|
|
|
uint32_t HAL_GetTick(void) {
|
2014-09-28 14:21:13 -04:00
|
|
|
return millis();
|
2014-06-16 01:33:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void HAL_Delay(uint32_t Delay) {
|
|
|
|
delay(Delay);
|
|
|
|
}
|
2014-11-27 11:58:31 -05:00
|
|
|
|
|
|
|
void mp_hal_set_interrupt_char(int c) {
|
|
|
|
// The teensy 3.1 usb stack doesn't currently have the notion of generating
|
|
|
|
// an exception when a certain character is received. That just means that
|
|
|
|
// you can't press Control-C and get your python script to stop.
|
|
|
|
}
|