From 658ce96ddb728ae9128a01928036b012aa5017ee Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 24 Feb 2016 15:45:33 +0000 Subject: Implemented delete handler. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8943 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'demos/STM32') diff --git a/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h b/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h index 2ddded71e..731b07adb 100644 --- a/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h +++ b/demos/STM32/NASA-OSAL-STM32F407-DISCOVERY/chconf.h @@ -420,7 +420,8 @@ * @details User fields added to the end of the @p thread_t structure. */ #define CH_CFG_THREAD_EXTRA_FIELDS \ - /* Add threads custom fields here.*/ + /* Add threads custom fields here.*/ \ + void *osal_delete_handler; /** * @brief Threads initialization hook. @@ -431,6 +432,7 @@ */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ /* Add threads initialization code here.*/ \ + tp->osal_delete_handler = NULL; \ } /** -- cgit v1.2.3