summaryrefslogtreecommitdiffstats
path: root/spec/rtems/timer/val/mem-srv-init.yml
blob: 33d5839c0e61cd241b37f44bcdfbf8fcc0168f54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
links:
- role: requirement-refinement
  uid: /testsuites/membench
- role: validation
  uid: ../req/mem-srv-init
test-brief: |
  This static memory usage benchmark program facilitates a basic application
  configuration with a call to ${../if/initiate-server:/name}.
test-code: |
  static void Init( rtems_task_argument arg )
  {
    (void) arg;

    (void) rtems_timer_initiate_server( 0, 0, 0 );
  }

  static void *task_stack_allocate( size_t size )
  {
    (void) size;
    return NULL;
  }

  static void task_stack_deallocate( void *stack )
  {
    (void) stack;
  }

  #define CONFIGURE_TASK_STACK_ALLOCATOR task_stack_allocate

  #define CONFIGURE_TASK_STACK_DEALLOCATOR task_stack_deallocate

  #define TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES

  #define TASK_STORAGE_SIZE \
    RTEMS_TASK_STORAGE_SIZE( \
      RTEMS_MINIMUM_STACK_SIZE, \
      TASK_ATTRIBUTES   )

  #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

  #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 0

  #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY

  #define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM

  #define CONFIGURE_IDLE_TASK_STORAGE_SIZE RTEMS_MINIMUM_STACK_SIZE

  #define CONFIGURE_MAXIMUM_TASKS 1

  #define CONFIGURE_RTEMS_INIT_TASKS_TABLE

  #define CONFIGURE_INIT_TASK_ATTRIBUTES TASK_ATTRIBUTES

  #define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES

  #define CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE TASK_STORAGE_SIZE

  #define CONFIGURE_INIT

  #include <rtems/confdefs.h>
test-description: null
test-includes:
- rtems.h
test-local-includes: []
test-target: testsuites/membench/mem-timer-srv-init.c
type: memory-benchmark