From 3ac681191ec76f7c0a876f2f2cc33adad9a99cc0 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Fri, 6 Mar 2015 12:41:49 -0500 Subject: cpukit: deprecate notepads Deprecate Classic API Notepads. Mark task_set/get_note() with the deprecated attribute, and also mark the notepads field. Replace disable with enable option for notepads in confdefs.h, and make notepads disabled by default. The previous option CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS is now unused and will emit a compile-time warning. A new option CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS is available to turn on notepads, but it also will emit a compile-time warning to indicate that notepads are deprecated. Closes #2265 --- cpukit/rtems/include/rtems/rtems/tasks.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h index e0fa27e16f..237ec19093 100644 --- a/cpukit/rtems/include/rtems/rtems/tasks.h +++ b/cpukit/rtems/include/rtems/rtems/tasks.h @@ -271,6 +271,8 @@ rtems_status_code rtems_task_delete( /** * @brief RTEMS Get Task Node * + * @deprecated Notepads are deprecated and will be removed. + * * This routine implements the rtems_task_get_note directive. The * value of the indicated notepad for the task associated with ID * is returned in note. @@ -285,11 +287,13 @@ rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note -); +) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; /** * @brief RTEMS Set Task Note * + * @deprecated Notepads are deprecated and will be removed. + * * This routine implements the rtems_task_set_note directive. The * value of the indicated notepad for the task associated with ID * is returned in note. @@ -306,7 +310,7 @@ rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note -); +) RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; /** * @brief RTEMS Task Mode @@ -663,10 +667,12 @@ typedef struct { /** * This field contains the notepads for this task. + * + * @deprecated Notepads are deprecated and will be removed. * * @note MUST BE LAST ENTRY. */ - uint32_t Notepads[ RTEMS_ZERO_LENGTH_ARRAY ]; + uint32_t Notepads[ RTEMS_ZERO_LENGTH_ARRAY ] RTEMS_COMPILER_DEPRECATED_ATTRIBUTE; } RTEMS_API_Control; /** -- cgit v1.2.3