summaryrefslogtreecommitdiff
path: root/lib/utils/interrupt_char.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-08-17 16:51:45 -0700
committerGitHub <noreply@github.com>2018-08-17 16:51:45 -0700
commit4a4d84ba42fb84032b31344e14fc3bb1f9e8dce2 (patch)
treeed2e486dea85dd416975d30e6beca608ce5597bc /lib/utils/interrupt_char.h
parent5dd420f7ff2c87a5412a55fea29eb21615a89e14 (diff)
parent11cbeb87adb10883fe46c46bd4e22e3ad3991ed3 (diff)
Merge pull request #1064 from notro/i2cslave
Add busio.I2CSlave
Diffstat (limited to 'lib/utils/interrupt_char.h')
-rw-r--r--lib/utils/interrupt_char.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/interrupt_char.h b/lib/utils/interrupt_char.h
index ca50d4d56..e0b1db529 100644
--- a/lib/utils/interrupt_char.h
+++ b/lib/utils/interrupt_char.h
@@ -26,8 +26,11 @@
#ifndef MICROPY_INCLUDED_LIB_UTILS_INTERRUPT_CHAR_H
#define MICROPY_INCLUDED_LIB_UTILS_INTERRUPT_CHAR_H
+#include <stdbool.h>
+
extern int mp_interrupt_char;
void mp_hal_set_interrupt_char(int c);
void mp_keyboard_interrupt(void);
+bool mp_hal_is_interrupted(void);
#endif // MICROPY_INCLUDED_LIB_UTILS_INTERRUPT_CHAR_H