Stub out mp_hal_is_interrupted for UNIX

This commit is contained in:
Scott Shawcroft 2020-12-23 12:22:50 -08:00
parent 1fca297a2d
commit 1a8033470a
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
2 changed files with 6 additions and 0 deletions

View File

@ -24,12 +24,14 @@
* THE SOFTWARE.
*/
#include <unistd.h>
#include <stdbool.h>
#ifndef CHAR_CTRL_C
#define CHAR_CTRL_C (3)
#endif
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_orig(void);

View File

@ -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
#include <termios.h>