Remove xalloc_init

This commit is contained in:
iabdalkader 2015-07-12 00:38:26 +02:00
parent c5fb6657fd
commit fb7d17a127
2 changed files with 0 additions and 8 deletions

View File

@ -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) {

View File

@ -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);