mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Remove xalloc_init
This commit is contained in:
parent
c5fb6657fd
commit
fb7d17a127
@ -46,7 +46,6 @@
|
||||
#include "sensor.h"
|
||||
#include "usbdbg.h"
|
||||
#include "sdram.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
#include "usbd_core.h"
|
||||
#include "usbd_desc.h"
|
||||
@ -250,7 +249,6 @@ soft_reset:
|
||||
uart_init0();
|
||||
pyb_usb_init0();
|
||||
|
||||
xalloc_init();
|
||||
usbdbg_init();
|
||||
|
||||
if (sensor_init() != 0) {
|
||||
|
||||
@ -10,12 +10,6 @@
|
||||
#include "mdefs.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
mp_obj_t oom_interrupt;
|
||||
void xalloc_init()
|
||||
{
|
||||
oom_interrupt= mp_obj_new_exception_msg(&mp_type_OSError, "Out of Memory!!");
|
||||
}
|
||||
|
||||
void *xalloc(uint32_t size)
|
||||
{
|
||||
void *mem = gc_alloc(size, false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user