]> begriffs open source - freertos/commit
Add configUSE_MINI_LIST_ITEM configuration option to enable the MiniListItem_t type...
authorPaul Bartell <pbartell@amazon.com>
Wed, 19 Jan 2022 21:12:57 +0000 (13:12 -0800)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 21:12:57 +0000 (13:12 -0800)
commitdca4f80a6be40f77848749ea18efd92b9d8ef66a
treee16b7bb9cf79f3b363debbf27c18df6789c30a35
parent043c2c7ef6c7657bb9db9957c9a039fbe6308c0b
Add configUSE_MINI_LIST_ITEM configuration option to enable the MiniListItem_t type. (#433)

* Add configUSE_MINI_LIST_ITEM configuration option to enable the MiniListItem_t type.

When configUSE_MINI_LIST_ITEM == 0:
MiniListItem_t and ListItem_t are both typedefs of struct xLIST_ITEM.

When configUSE_MINI_LIST_ITEM == 1 (the default in projdefs.h):
MiniListItem_t is a typedef of struct xMINI_LIST_ITEM, which contains 3 fewer fields than a struct xLIST_ITEM.
This configuration saves approximately sizeof(TickType_t) + 2 * sizeof( void * ) bytes of ram, however it also violates strict aliasing rules which some compilers depend on for optimization.

configUSE_MINI_LIST_ITEM defaults to 1 when not defined.

* Add pp_indent_brace option to uncrustify config

Improves compliance with the FreeRTOS code style guide:
https://www.freertos.org/FreeRTOS-Coding-Standard-and-Style-Guide.html
.github/uncrustify.cfg
History.txt
event_groups.c
include/FreeRTOS.h
include/list.h
list.c
queue.c
stream_buffer.c
tasks.c
timers.c