C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT

Closes https://github.com/espressif/esp-idf/issues/9938
This commit is contained in:
Omar Chebib
2022-10-13 12:01:27 +08:00
parent dcaa753f37
commit cd21058097
86 changed files with 506 additions and 463 deletions

View File

@@ -434,7 +434,9 @@ typedef struct {
volatile usb_wrap_date_reg_t date;
} usb_wrap_dev_t;
#ifndef __cplusplus
_Static_assert(sizeof(usb_wrap_dev_t)==0x400, "Invalid USB_WRAP size");
#endif
extern usb_wrap_dev_t USB_WRAP;