feat(esp_common): Added PACKED_ATTR in esp_attr.h

This commit is contained in:
Aditya Patwardhan
2023-10-13 14:28:17 +05:30
parent ade65add54
commit 8edef17f1a

View File

@ -57,6 +57,9 @@ extern "C" {
// Forces data to be placed to DMA-capable places
#define DMA_ATTR WORD_ALIGNED_ATTR DRAM_ATTR
// Forces the data to be tightly packed with minimum required padding and no extra bytes are added for alignment
#define PACKED_ATTR __attribute__((packed));
// Forces a function to be inlined
#define FORCE_INLINE_ATTR static inline __attribute__((always_inline))