Skip to content

Commit 1a80334

Browse files
committed
Stub out mp_hal_is_interrupted for UNIX
1 parent 1fca297 commit 1a80334

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ports/unix/mphalport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
* THE SOFTWARE.
2525
*/
2626
#include <unistd.h>
27+
#include <stdbool.h>
2728

2829
#ifndef CHAR_CTRL_C
2930
#define CHAR_CTRL_C (3)
3031
#endif
3132

3233
void mp_hal_set_interrupt_char(char c);
34+
bool mp_hal_is_interrupted(void);
3335

3436
void mp_hal_stdio_mode_raw(void);
3537
void mp_hal_stdio_mode_orig(void);

ports/unix/unix_mphal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ void mp_hal_set_interrupt_char(char c) {
8181
}
8282
}
8383

84+
bool mp_hal_is_interrupted(void) {
85+
return false;
86+
}
87+
8488
#if MICROPY_USE_READLINE == 1
8589

8690
#include <termios.h>

0 commit comments

Comments
 (0)