mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
23 lines
459 B
C
23 lines
459 B
C
#ifndef PYTHON_PORT_HELPERS_H
|
|
#define PYTHON_PORT_HELPERS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
// These methods return true if they have been interrupted
|
|
bool micropython_port_vm_hook_loop();
|
|
void micropython_port_vm_hook_refresh_print();
|
|
bool micropython_port_interruptible_msleep(int32_t delay);
|
|
bool micropython_port_interrupt_if_needed();
|
|
int micropython_port_random();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|