source: rtems/testsuites/libtests/rtems++/System.h @ 3ac68119

4.115
Last change on this file since 3ac68119 was 3ac68119, checked in by Gedare Bloom <gedare@…>, on 03/06/15 at 17:41:49

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

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[0074691a]1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
[1bdf29de]6 *  COPYRIGHT (c) 1989-2008.
[0074691a]7 *  On-Line Applications Research Corporation (OAR).
8 *
[98e4ebf5]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[c499856]11 *  http://www.rtems.org/license/LICENSE.
[0074691a]12 */
13
14#include <tmacros.h>
15#include <rtems++/rtemsEvent.h>
16#include <rtems++/rtemsMessageQueue.h>
17#include <rtems++/rtemsTask.h>
18#include <rtems++/rtemsTaskMode.h>
19
20/* functions */
21
22extern "C"
[8f71a36]23{
[0074691a]24  rtems_task Init(
25    rtems_task_argument argument
26    );
27}
28
29rtems_timer_service_routine Delayed_routine(
30  rtems_id  ignored_id,
31  void     *ignored_address
32);
33
34class Task1
35  : public rtemsTask
36{
37  void print_mode(rtems_mode mode, rtems_mode mask);
[8f71a36]38
[0074691a]39  void screen1(void);
40  void screen2(void);
41  void screen3(void);
42  void screen4(void);
43  void screen5(void);
44  void screen6(void);
45
46protected:
47  virtual void body(rtems_task_argument argument);
48
49public:
50};
51
52class Task2
53  : public rtemsTask
54{
55  void screen4(void);
56
57protected:
58  virtual void body(rtems_task_argument argument);
59
[8f71a36]60public:
[0074691a]61  Task2(const char* name,
62        const rtems_task_priority initial_priority,
[9919946a]63        const uint32_t   stack_size);
[0074691a]64};
65
66class Task3
67  : public rtemsTask
68{
[3a321e23]69  void screen6(void);
70
71protected:
72  virtual void body(rtems_task_argument argument);
73
[8f71a36]74public:
[3a321e23]75  Task3(const char* name,
76        const rtems_task_priority initial_priority,
[9919946a]77        const uint32_t   stack_size);
[2d60095]78};
79
80class EndTask
81  : public rtemsTask
82{
83protected:
84  virtual void body(rtems_task_argument argument);
85
[8f71a36]86public:
[2d60095]87  EndTask(const char* name,
88          const rtems_task_priority initial_priority,
[9919946a]89          const uint32_t   stack_size);
[0074691a]90};
91
[d9fe8e2]92#if 0
[0074691a]93
94//
95// Not sure this can be tested in a generic manner, any ideas anyone !!
96//
97
98class Service_routine
99  : public rtemsInterrupt
100{
101};
102
103class Io_during_interrupt
104  : pubic rtemsTimer
105{
106
107};
108
109#endif
110
111/* configuration information */
112
[df49c60]113#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
114#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
[0074691a]115
[df49c60]116#define CONFIGURE_MAXIMUM_TASKS               8
[0074691a]117#define CONFIGURE_MAXIMUM_TIMERS              1
118#define CONFIGURE_MAXIMUM_SEMAPHORES          2
119#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES      1
120#define CONFIGURE_MAXIMUM_PARTITIONS          1
121#define CONFIGURE_MAXIMUM_REGIONS             1
122#define CONFIGURE_MAXIMUM_PERIODS             1
123#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     0
124#define CONFIGURE_TICKS_PER_TIMESLICE       100
125
[3ac68119]126#define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
[f8b2eb03]127#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
128
[0074691a]129#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
[8f71a36]130#define CONFIGURE_INIT_TASK_STACK_SIZE      (4 * RTEMS_MINIMUM_STACK_SIZE)
[9a993ed5]131
[1bdf29de]132#define CONFIGURE_EXTRA_TASK_STACKS         (13 * RTEMS_MINIMUM_STACK_SIZE)
[0074691a]133
[1b22030]134#include <rtems/confdefs.h>
[0074691a]135
136/* end of include file */
Note: See TracBrowser for help on using the repository browser.