5
Last change
on this file since c0443b4c was
9d838902,
checked in by Sebastian Huber <sebastian.huber@…>, on 06/15/15 at 18:45:56
|
arm: Implement _CPU_ISR_Get_level() for ARMv7-M
|
-
Property mode set to
100644
|
File size:
619 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief CPU Get ISR Level |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Copyright (c) 2011-2015 Sebastian Huber. All rights reserved. |
---|
9 | * |
---|
10 | * embedded brains GmbH |
---|
11 | * Dornierstr. 4 |
---|
12 | * 82178 Puchheim |
---|
13 | * Germany |
---|
14 | * <rtems@embedded-brains.de> |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.rtems.org/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifdef HAVE_CONFIG_H |
---|
22 | #include "config.h" |
---|
23 | #endif |
---|
24 | |
---|
25 | #include <rtems/score/armv7m.h> |
---|
26 | |
---|
27 | #ifdef ARM_MULTILIB_ARCH_V7M |
---|
28 | |
---|
29 | uint32_t _CPU_ISR_Get_level( void ) |
---|
30 | { |
---|
31 | return _ARMV7M_Get_basepri() != 0; |
---|
32 | } |
---|
33 | |
---|
34 | #endif /* ARM_MULTILIB_ARCH_V7M */ |
---|
Note: See
TracBrowser
for help on using the repository browser.