EtcPal  0.4.1
ETC Platform Abstraction Layer (EtcPal)
View other versions:
EtcPal config options

Overview

Compile-time configuration options for EtcPal.

Options starting with "ETCPAL_EMBOS_" are ignored on Windows, macOS and Linux.

To override any of these options, either define them on your compiler command line, or provide a file called etcpal_config.h and:

In the etcpal_config.h file, simply #define any overridden options to the desired value.

Macros

#define ETCPAL_INCLUDE_PACK_64   1
 Whether to build the etcpal/pack64.h functions. More...
 
#define ETCPAL_EMBOS_USE_MALLOC   0
 Whether a malloc() implementation is available. More...
 
#define ETCPAL_EMBOS_MAX_NETINTS   5
 The maximum number of network interfaces that can be tracked by the netint (Network Interfaces) module. More...
 

Macro Definition Documentation

◆ ETCPAL_EMBOS_MAX_NETINTS

#define ETCPAL_EMBOS_MAX_NETINTS   5

The maximum number of network interfaces that can be tracked by the netint (Network Interfaces) module.

Currently this limit is not necessary and therefore ignored on all targets except lwIP.

◆ ETCPAL_EMBOS_USE_MALLOC

#define ETCPAL_EMBOS_USE_MALLOC   0

Whether a malloc() implementation is available.

Currently this only affects network interface enumeration using lwIP.

◆ ETCPAL_INCLUDE_PACK_64

#define ETCPAL_INCLUDE_PACK_64   1

Whether to build the etcpal/pack64.h functions.

This can be defined to 0 if you are on a platform that does not provide a int64_t/uint64_t type.