uLib
Macros
ulib_config.h File Reference

Configuration options for ulib. More...

Go to the source code of this file.

Macros

#define AZ_ULIB_CONFIG_MALLOC(size)   malloc(size)
 ulib malloc More...
 
#define AZ_ULIB_CONFIG_FREE(ptr)   free(ptr)
 ulib free More...
 
#define AZ_ULIB_CONFIG_LOG(category, format, ...)   az_ulog_print(category, format, ##__VA_ARGS__)
 ulib logger More...
 
#define AZ_ULIB_CONFIG_MAX_LOG_SIZE   256
 Maximum size of the ulib log. More...
 

Detailed Description

Configuration options for ulib.

Definition in file ulib_config.h.

Macro Definition Documentation

◆ AZ_ULIB_CONFIG_FREE

#define AZ_ULIB_CONFIG_FREE (   ptr)    free(ptr)

ulib free

Defines the free function that the ulib shall use as its own way to release memory dynamic allocated in the HEAP. For simplicity, it can be defined as the free(ptr) from the stdlib.h.

Definition at line 35 of file ulib_config.h.

◆ AZ_ULIB_CONFIG_LOG

#define AZ_ULIB_CONFIG_LOG (   category,
  format,
  ... 
)    az_ulog_print(category, format, ##__VA_ARGS__)

ulib logger

Defines the log function that the ulib shall use as its own way to print information in the log system.

Definition at line 47 of file ulib_config.h.

◆ AZ_ULIB_CONFIG_MALLOC

#define AZ_ULIB_CONFIG_MALLOC (   size)    malloc(size)

ulib malloc

Defines the malloc function that the ulib shall use as its own way to dynamically allocate memory from the HEAP. For simplicity, it can be defined as the malloc(size) from the stdlib.h.

Definition at line 27 of file ulib_config.h.

◆ AZ_ULIB_CONFIG_MAX_LOG_SIZE

#define AZ_ULIB_CONFIG_MAX_LOG_SIZE   256

Maximum size of the ulib log.

Defines the maximum number of chars in each log line.

Definition at line 54 of file ulib_config.h.