mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
* Add pre-compiled MicroPython library and headers. * Change Makefile to link libmp.a remove libusbgeneric * Change linker script to support MicroPython memory layout. * Change OTG handle name in stm32f4xx_it.c * Change main to init libmp and export Python functions. * Add MicroPython bindings to src
21 lines
569 B
C
21 lines
569 B
C
void gc_init(void *start, void *end);
|
|
void gc_collect_start(void);
|
|
void gc_collect_root(void **ptrs, machine_uint_t len);
|
|
void gc_collect_end(void);
|
|
void gc_collect(void);
|
|
void *gc_alloc(machine_uint_t n_bytes);
|
|
void gc_free(void *ptr);
|
|
machine_uint_t gc_nbytes(void *ptr);
|
|
void *gc_realloc(void *ptr, machine_uint_t n_bytes);
|
|
|
|
typedef struct _gc_info_t {
|
|
machine_uint_t total;
|
|
machine_uint_t used;
|
|
machine_uint_t free;
|
|
machine_uint_t num_1block;
|
|
machine_uint_t num_2block;
|
|
machine_uint_t max_block;
|
|
} gc_info_t;
|
|
|
|
void gc_info(gc_info_t *info);
|