73 return old_stack_start;
99 length += 3; length &= ~3;
107 return old_ublock_start;
void diewith(uint32_t pattern)
Sets a blinking pattern and never returns.
#define BLINK_DIE_OUTOFMEMSTACK
Out of stack memory space (used only where there is a separate memory block for stack).
#define DECLARE_CONST(name)
Declares a constant value.
#define CONSTANT_TRUE
We cannot compare constants to zero, so we use 1 and 2 as constant values for booleans.
char __stacks_min__
Linker symbol defining the first byte that is used by the interrupt stack in the stack segment.
static char * ublock_start
Pointer to the next free (unallocated) byte in the USB_RAM segment.
char __ETHRAM_segment_start__
Linker symbol defining the address where the ethernet RAM segment starts in the 32-bit address space.
void * usb_malloc(unsigned long length)
Custom malloc function for USB space.
char __USBRAM_segment_end__
Linker symbol defining the address where the USB RAM segment ends in the 32-bit address space.
void * buffer_malloc(size_t length)
Allocates a buffer.
static char * sstack_start
Next byte that's free in the stack memory allocation segment.
void * stack_malloc(unsigned long length)
Custom malloc function for stack spaces.
char __USBRAM_segment_start__
Linker symbol defining the address where the USB RAM segment starts in the 32-bit address space.