source: rtems/testsuites/sptests/spnotepad01/init.c @ 698c2e50

4.115
Last change on this file since 698c2e50 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include "tmacros.h"
15
16/* forward declarations to avoid warnings */
17rtems_task Init(rtems_task_argument argument);
18
19rtems_task Init(
20  rtems_task_argument ignored
21)
22{
23  rtems_status_code status;
24  uint32_t          note;
25
26  puts( "\n\n*** TEST NOTEPADS DISABLED ***" );
27
28  puts( "Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED" );
29  status = rtems_task_get_note( rtems_task_self(), 0, &note );
30  fatal_directive_status(
31    status,
32    RTEMS_NOT_CONFIGURED,
33    "rtems_task_get_note not configured"
34  );
35
36  puts( "Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED" );
37  status = rtems_task_set_note( rtems_task_self(), 0, 1 );
38  fatal_directive_status(
39    status,
40    RTEMS_NOT_CONFIGURED,
41    "rtems_task_set_note not configured"
42  );
43
44  puts( "*** END OF TEST NOTEPADS DISABLED ***" );
45
46  rtems_test_exit(0);
47}
48
49/* configuration information */
50
51#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
52#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
53
54#define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
55#define CONFIGURE_MAXIMUM_TASKS         1
56#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
57
58#define CONFIGURE_INIT
59
60#include <rtems/confdefs.h>
61
62/* global variables */
Note: See TracBrowser for help on using the repository browser.