Stub out mp_hal_is_interrupted for UNIX
This commit is contained in:
parent
1fca297a2d
commit
1a8033470a
@ -24,12 +24,14 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#ifndef CHAR_CTRL_C
|
#ifndef CHAR_CTRL_C
|
||||||
#define CHAR_CTRL_C (3)
|
#define CHAR_CTRL_C (3)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void mp_hal_set_interrupt_char(char c);
|
void mp_hal_set_interrupt_char(char c);
|
||||||
|
bool mp_hal_is_interrupted(void);
|
||||||
|
|
||||||
void mp_hal_stdio_mode_raw(void);
|
void mp_hal_stdio_mode_raw(void);
|
||||||
void mp_hal_stdio_mode_orig(void);
|
void mp_hal_stdio_mode_orig(void);
|
||||||
|
@ -81,6 +81,10 @@ void mp_hal_set_interrupt_char(char c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool mp_hal_is_interrupted(void) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
#if MICROPY_USE_READLINE == 1
|
#if MICROPY_USE_READLINE == 1
|
||||||
|
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user