summaryrefslogtreecommitdiffstats
path: root/spec/rtems/intr/if/local-enable.yml
blob: c0568aff0daacd88629e56499e43bc7e68872899 (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
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 (http://www.embedded-brains.de)
- 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: true
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-ctx-any
- role: constraint
  uid: /constraint/directive-no-preempt
- role: constraint
  uid: /constraint/interrupt-enable
name: rtems_interrupt_local_enable
notes: |
  The ${.:/params[0]/name} parameter value must be obtained by a previous call
  to ${local-disable:/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 ${local-disable:/name}.
  dir: in
  name: _isr_cookie
return: null
type: interface