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 --- doc/user/conf.t | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 5 deletions(-) (limited to 'doc/user/conf.t') diff --git a/doc/user/conf.t b/doc/user/conf.t index dc10816909..fe714b42d4 100644 --- a/doc/user/conf.t +++ b/doc/user/conf.t @@ -594,6 +594,40 @@ the assumption that all tasks have floating point enabled. This would require the addition of a new configuration parameter to specify the number of tasks which enable floating point support. +@c +@c === CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS === +@c +@subsection Enable Classic API Notepads + +@findex CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS + +@table @b +@item CONSTANT: +@code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS} + +@item DATA TYPE: +Boolean feature macro. + +@item RANGE: +Defined or undefined. + +@item DEFAULT VALUE: +This is not defined by default, and Classic API Notepads are not supported. + +@end table + +@subheading DESCRIPTION: +@code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS} should be defined if the +user wants to have support for Classic API Notepads in their application. + +@subheading NOTES: +Disabling Classic API Notepads saves the allocation of sixteen (16) +thirty-two bit integers. This saves sixty-four bytes per task/thread +plus the allocation overhead. Notepads are rarely used in applications +and this can save significant memory in a low RAM system. Classic API +Notepads are deprecated, and this option is expected to be obsolete in +the near future. + @c @c === CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS === @c @@ -612,20 +646,22 @@ Boolean feature macro. Defined or undefined. @item DEFAULT VALUE: -This is not defined by default, and Classic API Notepads are supported. +This is not defined by default, and Classic API Notepads are not supported. @end table @subheading DESCRIPTION: -@code{CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS} should be defined if the -user does not want to have support for Classic API Notepads in their -application. +@code{CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS} is deprecated. If users +want to have support for Classic API Notepads, they should use +@code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS}. @subheading NOTES: Disabling Classic API Notepads saves the allocation of sixteen (16) thirty-two bit integers. This saves sixty-four bytes per task/thread plus the allocation overhead. Notepads are rarely used in applications -and this can save significant memory in a low RAM system. +and this can save significant memory in a low RAM system. Classic API +Notepads are deprecated, and this option is expected to be obsolete in +the near future. @c @c === CONFIGURE_MAXIMUM_TIMERS === -- cgit v1.2.3