blob: c28dd918282132009c5f6faf84ecb746cd1c9c17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
#include "py/mpconfig.h"
#include "Arduino.h"
#include MICROPY_HAL_H
uint32_t HAL_GetTick(void) {
return millis();
}
void HAL_Delay(uint32_t Delay) {
delay(Delay);
}
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.
}
|