RTEMS
irq-lock.c
Go to the documentation of this file.
1 
9 /*
10  * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
11  *
12  * Copyright (c) 2008, 2018 embedded brains GmbH.
13  *
14  * embedded brains GmbH
15  * Dornierstr. 4
16  * 82178 Puchheim
17  * Germany
18  * <rtems@embedded-brains.de>
19  *
20  * The license and distribution terms for this file may be
21  * found in the file LICENSE in this distribution or at
22  * http://www.rtems.org/license/LICENSE.
23  */
24 
25 #include <bsp/irq-generic.h>
26 
27 #include <rtems/score/apimutex.h>
28 #include <rtems/score/sysstate.h>
29 
30 void bsp_interrupt_lock(void)
31 {
33  _RTEMS_Lock_allocator();
34  }
35 }
36 
37 void bsp_interrupt_unlock(void)
38 {
40  _RTEMS_Unlock_allocator();
41  }
42 }
Generic BSP interrupt support API.
static __inline__ bool _System_state_Is_up(System_state_Codes state)
Checks if the state is up.
Definition: sysstate.h:133
API Mutex Handler API.
static __inline__ System_state_Codes _System_state_Get(void)
Gets the current system state.
Definition: sysstate.h:90
System State Handler API.