Memory allocation for event.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void * | mem_alloc (uint32_t size) |
uint8_t | mem_free (void *ptr, uint32_t size) |
void | mem_init (uint8_t *base_addr, uint32_t size) |
Variables | |
int32_t | head |
uint32_t | max_count |
uint8_t * | mem_pool_base_addr |
uint32_t | mem_pool_size |
int32_t | tail |
void* mem_alloc | ( | uint32_t | size | ) |
References head, mem_pool_base_addr, mem_pool_size, NULL, and tail.
Referenced by event_fifo_write().
uint8_t mem_free | ( | void * | ptr, |
uint32_t | size | ||
) |
References head, MEM_DEALLOC_FAILURE, MEM_DEALLOC_SUCCESS, MEM_INVALID_ADDRESS, mem_pool_base_addr, mem_pool_size, NULL, and tail.
Referenced by ble_event_get(), mem_free_callback(), and pbuf_free().
void mem_init | ( | uint8_t * | base_addr, |
uint32_t | size | ||
) |
References head, mem_pool_base_addr, mem_pool_size, and tail.
Referenced by interface_init(), and lwip_init().
int32_t head |
Referenced by mem_alloc(), mem_free(), and mem_init().
uint32_t max_count |
Referenced by _tcc_set_compare_value(), _tcc_set_top_value(), and tcc_set_count_value().
uint8_t* mem_pool_base_addr |
Referenced by mem_alloc(), mem_free(), and mem_init().
uint32_t mem_pool_size |
Referenced by mem_alloc(), mem_free(), and mem_init().
int32_t tail |
Referenced by get_next_tx_buffer(), mem_alloc(), mem_free(), and mem_init().