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