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.
pull/2542/merge
Paul Sokolovsky 2016-10-26 17:53:28 +03:00
rodzic 6832cbd69d
commit 3cdccb9b14
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -53,8 +53,6 @@ STATIC bool repl_display_debugging_info = 0;
#define EXEC_FLAG_IS_REPL (4)
#define EXEC_FLAG_SOURCE_IS_RAW_CODE (8)
extern void mp_hal_set_interrupt_char (int c);
// parses, compiles and executes the code in the lexer
// frees the lexer before returning
// EXEC_FLAG_PRINT_EOF prints 2 EOF chars: 1 after normal output, 1 after exception output

Wyświetl plik

@ -1,4 +1,5 @@
#include <zephyr.h>
#include "lib/utils/interrupt_char.h"
static inline mp_uint_t mp_hal_ticks_us(void) {
return sys_tick_get() * sys_clock_us_per_tick;