]> granicus.if.org Git - esp-idf/commit
FreeRTOS: Use C11 _Static_assert to verify static "dummy" structs at compile time
authorAngus Gratton <angus@espressif.com>
Tue, 22 Nov 2016 22:42:35 +0000 (09:42 +1100)
committerAngus Gratton <angus@espressif.com>
Tue, 22 Nov 2016 23:22:19 +0000 (10:22 +1100)
commit180f4d092917183fb27508f1ca7fb1eabf1b7d23
treea27d2f8f3b02cde53ed89bb8d3bdbbf9055945f5
parent2a73783bc656f208c4277f837593acb200a203c1
FreeRTOS: Use C11 _Static_assert to verify static "dummy" structs at compile time

Includes a tweak to make Static_task_t equal size to TCB_t when using
MPU_WRAPPERS . Matches tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE macro
in tasks.c. This isn't actually a bug (if static task allocation is off,
there is no use for Static_task_t), but it allows us to make consistent
compile-time checks that Static_task_t == TCB_t.
components/freertos/include/freertos/FreeRTOS.h
components/freertos/include/freertos/list.h
components/freertos/queue.c
components/freertos/tasks.c