summaryrefslogtreecommitdiffstats
path: root/spec/rtems/intr/if/enable.yml
blob: a0144a990ceea8038931385974d86424e92c961d (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
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Restores the previous interrupt level on the current processor.
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
- Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
definition:
  default:
    attributes: null
    body: ${/score/isr/if/local-enable:/name}( ${.:/params[0]/name} )
    params:
    - ${level:/name} ${.:/params[0]/name}
    return: void
  variants: []
description: |
  This directive restores the interrupt level specified by
  ${.:/params[0]/name} on the current processor.
enabled-by:
  not: RTEMS_SMP
index-entries:
- enable interrupts
- restore interrupt level
interface-type: macro
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
- role: constraint
  uid: /constraint/directive-not-pre-qualified
- role: constraint
  uid: /constraint/directive-ctx-any
- role: constraint
  uid: /constraint/directive-no-preempt
- role: constraint
  uid: /constraint/interrupt-enable
- role: constraint
  uid: ../constraint/no-smp
name: rtems_interrupt_enable
notes: |
  The ${.:/params[0]/name} parameter value must be obtained by a previous
  call to ${disable:/name} or ${flash:/name}.  Using an otherwise obtained
  value is undefined behaviour.

  This directive is unsuitable to enable particular interrupt sources, for
  example in an interrupt controller.
params:
- description: |
    is the previous interrupt level to restore.  The value must be obtained by
    a previous call to ${disable:/name} or ${flash:/name}.
  dir: in
  name: _isr_cookie
return: null
type: interface