Skip to content

Commit 3cdccb9

Browse files
committed
zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.
With other ports. Other ports declare it in mphalport.h, it can be inline or macro.
1 parent 6832cbd commit 3cdccb9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/utils/pyexec.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ STATIC bool repl_display_debugging_info = 0;
5353
#define EXEC_FLAG_IS_REPL (4)
5454
#define EXEC_FLAG_SOURCE_IS_RAW_CODE (8)
5555

56-
extern void mp_hal_set_interrupt_char (int c);
57-
5856
// parses, compiles and executes the code in the lexer
5957
// frees the lexer before returning
6058
// EXEC_FLAG_PRINT_EOF prints 2 EOF chars: 1 after normal output, 1 after exception output

zephyr/mphalport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <zephyr.h>
2+
#include "lib/utils/interrupt_char.h"
23

34
static inline mp_uint_t mp_hal_ticks_us(void) {
45
return sys_tick_get() * sys_clock_us_per_tick;

0 commit comments

Comments
 (0)