mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
18 lines
336 B
C
18 lines
336 B
C
#ifndef PYTHON_PORT_HELPERS_H
|
|
#define PYTHON_PORT_HELPERS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#include <stdbool.h>
|
|
|
|
/* should_interrupt effectively does something once every 20000 calls. It checks
|
|
* if a key is down to raise an interruption flag. */
|
|
bool micropython_port_should_interrupt();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|