HAL_ChibiOS: added a delete_next thread field for cleanup

allows for cleanup of web server threads in bootloader
This commit is contained in:
Andrew Tridgell 2024-01-20 07:52:43 +11:00
parent 5e7b211b79
commit f7c7ee00e9
2 changed files with 4 additions and 0 deletions

View File

@ -708,8 +708,10 @@ extern "C" {
* @brief Threads descriptor structure extension. * @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure. * @details User fields added to the end of the @p thread_t structure.
*/ */
#ifndef CH_CFG_THREAD_EXTRA_FIELDS
#define CH_CFG_THREAD_EXTRA_FIELDS \ #define CH_CFG_THREAD_EXTRA_FIELDS \
/* Add threads custom fields here.*/ /* Add threads custom fields here.*/
#endif
/** /**
* @brief Threads initialization hook. * @brief Threads initialization hook.

View File

@ -20,3 +20,5 @@ EXT_FLASH_SIZE_MB 0
# don't combine sdcard bl and network bl # don't combine sdcard bl and network bl
undef AP_BOOTLOADER_FLASH_FROM_SD_ENABLED undef AP_BOOTLOADER_FLASH_FROM_SD_ENABLED
define CH_CFG_THREAD_EXTRA_FIELDS struct ch_thread *delete_next;