Compile-time configuration flags and utility macros for SPP. More...
Go to the source code of this file.
Macros | |
| #define | SPP_NO_MALLOC 0 |
| Disable dynamic memory allocation (malloc/free). | |
| #define | SPP_NO_STORAGE 0 |
| Disable SD card / filesystem storage support. | |
| #define | K_SPP_DATABANK_SIZE (50U) |
| Number of packets in the static databank pool. | |
| #define | K_SPP_PUBSUB_MAX_SUBSCRIBERS (8U) |
| Maximum number of pub/sub subscribers that can be registered. | |
| #define | K_SPP_MAX_SERVICES (16U) |
| Maximum number of services that can be registered. | |
| #define | K_SPP_APID_NONE (0x0000U) |
| APID bitmask meaning "no APID — module neither produces nor consumes". | |
| #define | K_SPP_PUBSUB_QUEUE_SIZE (16U) |
| Deferred dispatch ring-buffer size. Must be a power of 2. | |
Compile-time configuration flags and utility macros for SPP.
Feature flags follow the pattern SPP_NO_<FEATURE> — define them to 1 (e.g. in your CMakeLists.txt) to disable the corresponding feature and reduce code size on constrained targets.
Naming conventions used in this file:
Definition in file macros.h.
| #define SPP_NO_MALLOC 0 |
| #define SPP_NO_STORAGE 0 |
| #define K_SPP_DATABANK_SIZE (50U) |
Number of packets in the static databank pool.
Definition at line 47 of file macros.h.
Referenced by SPP_SERVICES_DATABANK_init(), and SPP_SERVICES_DATABANK_returnPacket().
| #define K_SPP_PUBSUB_MAX_SUBSCRIBERS (8U) |
| #define K_SPP_MAX_SERVICES (16U) |
| #define K_SPP_APID_NONE (0x0000U) |