The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
bogdanm
Date:
Wed Jun 11 15:14:05 2014 +0100
Revision:
85:024bf7f99721
Child:
110:165afa46840b
Release 85 of the mbed library

Main changes:

- K64F Ethernet fixes
- Updated tests
- Fixes for various mbed targets
- Code cleanup: fixed warnings, more consistent code style
- GCC support for K64F

There is a known issue with the I2C interface on some ST targets. If you
find the I2C interface problematic on your ST board, please log a bug
against this on mbed.org.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 85:024bf7f99721 1 /**************************************************************************//**
bogdanm 85:024bf7f99721 2 * @file core_cmInstr.h
bogdanm 85:024bf7f99721 3 * @brief CMSIS Cortex-M Core Instruction Access Header File
bogdanm 85:024bf7f99721 4 * @version V3.20
bogdanm 85:024bf7f99721 5 * @date 05. March 2013
bogdanm 85:024bf7f99721 6 *
bogdanm 85:024bf7f99721 7 * @note
bogdanm 85:024bf7f99721 8 *
bogdanm 85:024bf7f99721 9 ******************************************************************************/
bogdanm 85:024bf7f99721 10 /* Copyright (c) 2009 - 2013 ARM LIMITED
bogdanm 85:024bf7f99721 11
bogdanm 85:024bf7f99721 12 All rights reserved.
bogdanm 85:024bf7f99721 13 Redistribution and use in source and binary forms, with or without
bogdanm 85:024bf7f99721 14 modification, are permitted provided that the following conditions are met:
bogdanm 85:024bf7f99721 15 - Redistributions of source code must retain the above copyright
bogdanm 85:024bf7f99721 16 notice, this list of conditions and the following disclaimer.
bogdanm 85:024bf7f99721 17 - Redistributions in binary form must reproduce the above copyright
bogdanm 85:024bf7f99721 18 notice, this list of conditions and the following disclaimer in the
bogdanm 85:024bf7f99721 19 documentation and/or other materials provided with the distribution.
bogdanm 85:024bf7f99721 20 - Neither the name of ARM nor the names of its contributors may be used
bogdanm 85:024bf7f99721 21 to endorse or promote products derived from this software without
bogdanm 85:024bf7f99721 22 specific prior written permission.
bogdanm 85:024bf7f99721 23 *
bogdanm 85:024bf7f99721 24 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 85:024bf7f99721 25 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 85:024bf7f99721 26 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
bogdanm 85:024bf7f99721 27 ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
bogdanm 85:024bf7f99721 28 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
bogdanm 85:024bf7f99721 29 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
bogdanm 85:024bf7f99721 30 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
bogdanm 85:024bf7f99721 31 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
bogdanm 85:024bf7f99721 32 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
bogdanm 85:024bf7f99721 33 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
bogdanm 85:024bf7f99721 34 POSSIBILITY OF SUCH DAMAGE.
bogdanm 85:024bf7f99721 35 ---------------------------------------------------------------------------*/
bogdanm 85:024bf7f99721 36
bogdanm 85:024bf7f99721 37
bogdanm 85:024bf7f99721 38 #ifndef __CORE_CMINSTR_H
bogdanm 85:024bf7f99721 39 #define __CORE_CMINSTR_H
bogdanm 85:024bf7f99721 40
bogdanm 85:024bf7f99721 41
bogdanm 85:024bf7f99721 42 /* ########################## Core Instruction Access ######################### */
bogdanm 85:024bf7f99721 43 /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
bogdanm 85:024bf7f99721 44 Access to dedicated instructions
bogdanm 85:024bf7f99721 45 @{
bogdanm 85:024bf7f99721 46 */
bogdanm 85:024bf7f99721 47
bogdanm 85:024bf7f99721 48 #if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
bogdanm 85:024bf7f99721 49 /* ARM armcc specific functions */
bogdanm 85:024bf7f99721 50
bogdanm 85:024bf7f99721 51 #if (__ARMCC_VERSION < 400677)
bogdanm 85:024bf7f99721 52 #error "Please use ARM Compiler Toolchain V4.0.677 or later!"
bogdanm 85:024bf7f99721 53 #endif
bogdanm 85:024bf7f99721 54
bogdanm 85:024bf7f99721 55
bogdanm 85:024bf7f99721 56 /** \brief No Operation
bogdanm 85:024bf7f99721 57
bogdanm 85:024bf7f99721 58 No Operation does nothing. This instruction can be used for code alignment purposes.
bogdanm 85:024bf7f99721 59 */
bogdanm 85:024bf7f99721 60 #define __NOP __nop
bogdanm 85:024bf7f99721 61
bogdanm 85:024bf7f99721 62
bogdanm 85:024bf7f99721 63 /** \brief Wait For Interrupt
bogdanm 85:024bf7f99721 64
bogdanm 85:024bf7f99721 65 Wait For Interrupt is a hint instruction that suspends execution
bogdanm 85:024bf7f99721 66 until one of a number of events occurs.
bogdanm 85:024bf7f99721 67 */
bogdanm 85:024bf7f99721 68 #define __WFI __wfi
bogdanm 85:024bf7f99721 69
bogdanm 85:024bf7f99721 70
bogdanm 85:024bf7f99721 71 /** \brief Wait For Event
bogdanm 85:024bf7f99721 72
bogdanm 85:024bf7f99721 73 Wait For Event is a hint instruction that permits the processor to enter
bogdanm 85:024bf7f99721 74 a low-power state until one of a number of events occurs.
bogdanm 85:024bf7f99721 75 */
bogdanm 85:024bf7f99721 76 #define __WFE __wfe
bogdanm 85:024bf7f99721 77
bogdanm 85:024bf7f99721 78
bogdanm 85:024bf7f99721 79 /** \brief Send Event
bogdanm 85:024bf7f99721 80
bogdanm 85:024bf7f99721 81 Send Event is a hint instruction. It causes an event to be signaled to the CPU.
bogdanm 85:024bf7f99721 82 */
bogdanm 85:024bf7f99721 83 #define __SEV __sev
bogdanm 85:024bf7f99721 84
bogdanm 85:024bf7f99721 85
bogdanm 85:024bf7f99721 86 /** \brief Instruction Synchronization Barrier
bogdanm 85:024bf7f99721 87
bogdanm 85:024bf7f99721 88 Instruction Synchronization Barrier flushes the pipeline in the processor,
bogdanm 85:024bf7f99721 89 so that all instructions following the ISB are fetched from cache or
bogdanm 85:024bf7f99721 90 memory, after the instruction has been completed.
bogdanm 85:024bf7f99721 91 */
bogdanm 85:024bf7f99721 92 #define __ISB() __isb(0xF)
bogdanm 85:024bf7f99721 93
bogdanm 85:024bf7f99721 94
bogdanm 85:024bf7f99721 95 /** \brief Data Synchronization Barrier
bogdanm 85:024bf7f99721 96
bogdanm 85:024bf7f99721 97 This function acts as a special kind of Data Memory Barrier.
bogdanm 85:024bf7f99721 98 It completes when all explicit memory accesses before this instruction complete.
bogdanm 85:024bf7f99721 99 */
bogdanm 85:024bf7f99721 100 #define __DSB() __dsb(0xF)
bogdanm 85:024bf7f99721 101
bogdanm 85:024bf7f99721 102
bogdanm 85:024bf7f99721 103 /** \brief Data Memory Barrier
bogdanm 85:024bf7f99721 104
bogdanm 85:024bf7f99721 105 This function ensures the apparent order of the explicit memory operations before
bogdanm 85:024bf7f99721 106 and after the instruction, without ensuring their completion.
bogdanm 85:024bf7f99721 107 */
bogdanm 85:024bf7f99721 108 #define __DMB() __dmb(0xF)
bogdanm 85:024bf7f99721 109
bogdanm 85:024bf7f99721 110
bogdanm 85:024bf7f99721 111 /** \brief Reverse byte order (32 bit)
bogdanm 85:024bf7f99721 112
bogdanm 85:024bf7f99721 113 This function reverses the byte order in integer value.
bogdanm 85:024bf7f99721 114
bogdanm 85:024bf7f99721 115 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 116 \return Reversed value
bogdanm 85:024bf7f99721 117 */
bogdanm 85:024bf7f99721 118 #define __REV __rev
bogdanm 85:024bf7f99721 119
bogdanm 85:024bf7f99721 120
bogdanm 85:024bf7f99721 121 /** \brief Reverse byte order (16 bit)
bogdanm 85:024bf7f99721 122
bogdanm 85:024bf7f99721 123 This function reverses the byte order in two unsigned short values.
bogdanm 85:024bf7f99721 124
bogdanm 85:024bf7f99721 125 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 126 \return Reversed value
bogdanm 85:024bf7f99721 127 */
bogdanm 85:024bf7f99721 128 #ifndef __NO_EMBEDDED_ASM
bogdanm 85:024bf7f99721 129 __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
bogdanm 85:024bf7f99721 130 {
bogdanm 85:024bf7f99721 131 rev16 r0, r0
bogdanm 85:024bf7f99721 132 bx lr
bogdanm 85:024bf7f99721 133 }
bogdanm 85:024bf7f99721 134 #endif
bogdanm 85:024bf7f99721 135
bogdanm 85:024bf7f99721 136 /** \brief Reverse byte order in signed short value
bogdanm 85:024bf7f99721 137
bogdanm 85:024bf7f99721 138 This function reverses the byte order in a signed short value with sign extension to integer.
bogdanm 85:024bf7f99721 139
bogdanm 85:024bf7f99721 140 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 141 \return Reversed value
bogdanm 85:024bf7f99721 142 */
bogdanm 85:024bf7f99721 143 #ifndef __NO_EMBEDDED_ASM
bogdanm 85:024bf7f99721 144 __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value)
bogdanm 85:024bf7f99721 145 {
bogdanm 85:024bf7f99721 146 revsh r0, r0
bogdanm 85:024bf7f99721 147 bx lr
bogdanm 85:024bf7f99721 148 }
bogdanm 85:024bf7f99721 149 #endif
bogdanm 85:024bf7f99721 150
bogdanm 85:024bf7f99721 151
bogdanm 85:024bf7f99721 152 /** \brief Rotate Right in unsigned value (32 bit)
bogdanm 85:024bf7f99721 153
bogdanm 85:024bf7f99721 154 This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.
bogdanm 85:024bf7f99721 155
bogdanm 85:024bf7f99721 156 \param [in] value Value to rotate
bogdanm 85:024bf7f99721 157 \param [in] value Number of Bits to rotate
bogdanm 85:024bf7f99721 158 \return Rotated value
bogdanm 85:024bf7f99721 159 */
bogdanm 85:024bf7f99721 160 #define __ROR __ror
bogdanm 85:024bf7f99721 161
bogdanm 85:024bf7f99721 162
bogdanm 85:024bf7f99721 163 /** \brief Breakpoint
bogdanm 85:024bf7f99721 164
bogdanm 85:024bf7f99721 165 This function causes the processor to enter Debug state.
bogdanm 85:024bf7f99721 166 Debug tools can use this to investigate system state when the instruction at a particular address is reached.
bogdanm 85:024bf7f99721 167
bogdanm 85:024bf7f99721 168 \param [in] value is ignored by the processor.
bogdanm 85:024bf7f99721 169 If required, a debugger can use it to store additional information about the breakpoint.
bogdanm 85:024bf7f99721 170 */
bogdanm 85:024bf7f99721 171 #define __BKPT(value) __breakpoint(value)
bogdanm 85:024bf7f99721 172
bogdanm 85:024bf7f99721 173
bogdanm 85:024bf7f99721 174 #if (__CORTEX_M >= 0x03)
bogdanm 85:024bf7f99721 175
bogdanm 85:024bf7f99721 176 /** \brief Reverse bit order of value
bogdanm 85:024bf7f99721 177
bogdanm 85:024bf7f99721 178 This function reverses the bit order of the given value.
bogdanm 85:024bf7f99721 179
bogdanm 85:024bf7f99721 180 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 181 \return Reversed value
bogdanm 85:024bf7f99721 182 */
bogdanm 85:024bf7f99721 183 #define __RBIT __rbit
bogdanm 85:024bf7f99721 184
bogdanm 85:024bf7f99721 185
bogdanm 85:024bf7f99721 186 /** \brief LDR Exclusive (8 bit)
bogdanm 85:024bf7f99721 187
bogdanm 85:024bf7f99721 188 This function performs a exclusive LDR command for 8 bit value.
bogdanm 85:024bf7f99721 189
bogdanm 85:024bf7f99721 190 \param [in] ptr Pointer to data
bogdanm 85:024bf7f99721 191 \return value of type uint8_t at (*ptr)
bogdanm 85:024bf7f99721 192 */
bogdanm 85:024bf7f99721 193 #define __LDREXB(ptr) ((uint8_t ) __ldrex(ptr))
bogdanm 85:024bf7f99721 194
bogdanm 85:024bf7f99721 195
bogdanm 85:024bf7f99721 196 /** \brief LDR Exclusive (16 bit)
bogdanm 85:024bf7f99721 197
bogdanm 85:024bf7f99721 198 This function performs a exclusive LDR command for 16 bit values.
bogdanm 85:024bf7f99721 199
bogdanm 85:024bf7f99721 200 \param [in] ptr Pointer to data
bogdanm 85:024bf7f99721 201 \return value of type uint16_t at (*ptr)
bogdanm 85:024bf7f99721 202 */
bogdanm 85:024bf7f99721 203 #define __LDREXH(ptr) ((uint16_t) __ldrex(ptr))
bogdanm 85:024bf7f99721 204
bogdanm 85:024bf7f99721 205
bogdanm 85:024bf7f99721 206 /** \brief LDR Exclusive (32 bit)
bogdanm 85:024bf7f99721 207
bogdanm 85:024bf7f99721 208 This function performs a exclusive LDR command for 32 bit values.
bogdanm 85:024bf7f99721 209
bogdanm 85:024bf7f99721 210 \param [in] ptr Pointer to data
bogdanm 85:024bf7f99721 211 \return value of type uint32_t at (*ptr)
bogdanm 85:024bf7f99721 212 */
bogdanm 85:024bf7f99721 213 #define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr))
bogdanm 85:024bf7f99721 214
bogdanm 85:024bf7f99721 215
bogdanm 85:024bf7f99721 216 /** \brief STR Exclusive (8 bit)
bogdanm 85:024bf7f99721 217
bogdanm 85:024bf7f99721 218 This function performs a exclusive STR command for 8 bit values.
bogdanm 85:024bf7f99721 219
bogdanm 85:024bf7f99721 220 \param [in] value Value to store
bogdanm 85:024bf7f99721 221 \param [in] ptr Pointer to location
bogdanm 85:024bf7f99721 222 \return 0 Function succeeded
bogdanm 85:024bf7f99721 223 \return 1 Function failed
bogdanm 85:024bf7f99721 224 */
bogdanm 85:024bf7f99721 225 #define __STREXB(value, ptr) __strex(value, ptr)
bogdanm 85:024bf7f99721 226
bogdanm 85:024bf7f99721 227
bogdanm 85:024bf7f99721 228 /** \brief STR Exclusive (16 bit)
bogdanm 85:024bf7f99721 229
bogdanm 85:024bf7f99721 230 This function performs a exclusive STR command for 16 bit values.
bogdanm 85:024bf7f99721 231
bogdanm 85:024bf7f99721 232 \param [in] value Value to store
bogdanm 85:024bf7f99721 233 \param [in] ptr Pointer to location
bogdanm 85:024bf7f99721 234 \return 0 Function succeeded
bogdanm 85:024bf7f99721 235 \return 1 Function failed
bogdanm 85:024bf7f99721 236 */
bogdanm 85:024bf7f99721 237 #define __STREXH(value, ptr) __strex(value, ptr)
bogdanm 85:024bf7f99721 238
bogdanm 85:024bf7f99721 239
bogdanm 85:024bf7f99721 240 /** \brief STR Exclusive (32 bit)
bogdanm 85:024bf7f99721 241
bogdanm 85:024bf7f99721 242 This function performs a exclusive STR command for 32 bit values.
bogdanm 85:024bf7f99721 243
bogdanm 85:024bf7f99721 244 \param [in] value Value to store
bogdanm 85:024bf7f99721 245 \param [in] ptr Pointer to location
bogdanm 85:024bf7f99721 246 \return 0 Function succeeded
bogdanm 85:024bf7f99721 247 \return 1 Function failed
bogdanm 85:024bf7f99721 248 */
bogdanm 85:024bf7f99721 249 #define __STREXW(value, ptr) __strex(value, ptr)
bogdanm 85:024bf7f99721 250
bogdanm 85:024bf7f99721 251
bogdanm 85:024bf7f99721 252 /** \brief Remove the exclusive lock
bogdanm 85:024bf7f99721 253
bogdanm 85:024bf7f99721 254 This function removes the exclusive lock which is created by LDREX.
bogdanm 85:024bf7f99721 255
bogdanm 85:024bf7f99721 256 */
bogdanm 85:024bf7f99721 257 #define __CLREX __clrex
bogdanm 85:024bf7f99721 258
bogdanm 85:024bf7f99721 259
bogdanm 85:024bf7f99721 260 /** \brief Signed Saturate
bogdanm 85:024bf7f99721 261
bogdanm 85:024bf7f99721 262 This function saturates a signed value.
bogdanm 85:024bf7f99721 263
bogdanm 85:024bf7f99721 264 \param [in] value Value to be saturated
bogdanm 85:024bf7f99721 265 \param [in] sat Bit position to saturate to (1..32)
bogdanm 85:024bf7f99721 266 \return Saturated value
bogdanm 85:024bf7f99721 267 */
bogdanm 85:024bf7f99721 268 #define __SSAT __ssat
bogdanm 85:024bf7f99721 269
bogdanm 85:024bf7f99721 270
bogdanm 85:024bf7f99721 271 /** \brief Unsigned Saturate
bogdanm 85:024bf7f99721 272
bogdanm 85:024bf7f99721 273 This function saturates an unsigned value.
bogdanm 85:024bf7f99721 274
bogdanm 85:024bf7f99721 275 \param [in] value Value to be saturated
bogdanm 85:024bf7f99721 276 \param [in] sat Bit position to saturate to (0..31)
bogdanm 85:024bf7f99721 277 \return Saturated value
bogdanm 85:024bf7f99721 278 */
bogdanm 85:024bf7f99721 279 #define __USAT __usat
bogdanm 85:024bf7f99721 280
bogdanm 85:024bf7f99721 281
bogdanm 85:024bf7f99721 282 /** \brief Count leading zeros
bogdanm 85:024bf7f99721 283
bogdanm 85:024bf7f99721 284 This function counts the number of leading zeros of a data value.
bogdanm 85:024bf7f99721 285
bogdanm 85:024bf7f99721 286 \param [in] value Value to count the leading zeros
bogdanm 85:024bf7f99721 287 \return number of leading zeros in value
bogdanm 85:024bf7f99721 288 */
bogdanm 85:024bf7f99721 289 #define __CLZ __clz
bogdanm 85:024bf7f99721 290
bogdanm 85:024bf7f99721 291 #endif /* (__CORTEX_M >= 0x03) */
bogdanm 85:024bf7f99721 292
bogdanm 85:024bf7f99721 293
bogdanm 85:024bf7f99721 294
bogdanm 85:024bf7f99721 295 #elif defined ( __ICCARM__ ) /*------------------ ICC Compiler -------------------*/
bogdanm 85:024bf7f99721 296 /* IAR iccarm specific functions */
bogdanm 85:024bf7f99721 297
bogdanm 85:024bf7f99721 298 #include <cmsis_iar.h>
bogdanm 85:024bf7f99721 299
bogdanm 85:024bf7f99721 300
bogdanm 85:024bf7f99721 301 #elif defined ( __TMS470__ ) /*---------------- TI CCS Compiler ------------------*/
bogdanm 85:024bf7f99721 302 /* TI CCS specific functions */
bogdanm 85:024bf7f99721 303
bogdanm 85:024bf7f99721 304 #include <cmsis_ccs.h>
bogdanm 85:024bf7f99721 305
bogdanm 85:024bf7f99721 306
bogdanm 85:024bf7f99721 307 #elif defined ( __GNUC__ ) /*------------------ GNU Compiler ---------------------*/
bogdanm 85:024bf7f99721 308 /* GNU gcc specific functions */
bogdanm 85:024bf7f99721 309
bogdanm 85:024bf7f99721 310 /* Define macros for porting to both thumb1 and thumb2.
bogdanm 85:024bf7f99721 311 * For thumb1, use low register (r0-r7), specified by constrant "l"
bogdanm 85:024bf7f99721 312 * Otherwise, use general registers, specified by constrant "r" */
bogdanm 85:024bf7f99721 313 #if defined (__thumb__) && !defined (__thumb2__)
bogdanm 85:024bf7f99721 314 #define __CMSIS_GCC_OUT_REG(r) "=l" (r)
bogdanm 85:024bf7f99721 315 #define __CMSIS_GCC_USE_REG(r) "l" (r)
bogdanm 85:024bf7f99721 316 #else
bogdanm 85:024bf7f99721 317 #define __CMSIS_GCC_OUT_REG(r) "=r" (r)
bogdanm 85:024bf7f99721 318 #define __CMSIS_GCC_USE_REG(r) "r" (r)
bogdanm 85:024bf7f99721 319 #endif
bogdanm 85:024bf7f99721 320
bogdanm 85:024bf7f99721 321 /** \brief No Operation
bogdanm 85:024bf7f99721 322
bogdanm 85:024bf7f99721 323 No Operation does nothing. This instruction can be used for code alignment purposes.
bogdanm 85:024bf7f99721 324 */
bogdanm 85:024bf7f99721 325 __attribute__( ( always_inline ) ) __STATIC_INLINE void __NOP(void)
bogdanm 85:024bf7f99721 326 {
bogdanm 85:024bf7f99721 327 __ASM volatile ("nop");
bogdanm 85:024bf7f99721 328 }
bogdanm 85:024bf7f99721 329
bogdanm 85:024bf7f99721 330
bogdanm 85:024bf7f99721 331 /** \brief Wait For Interrupt
bogdanm 85:024bf7f99721 332
bogdanm 85:024bf7f99721 333 Wait For Interrupt is a hint instruction that suspends execution
bogdanm 85:024bf7f99721 334 until one of a number of events occurs.
bogdanm 85:024bf7f99721 335 */
bogdanm 85:024bf7f99721 336 __attribute__( ( always_inline ) ) __STATIC_INLINE void __WFI(void)
bogdanm 85:024bf7f99721 337 {
bogdanm 85:024bf7f99721 338 __ASM volatile ("wfi");
bogdanm 85:024bf7f99721 339 }
bogdanm 85:024bf7f99721 340
bogdanm 85:024bf7f99721 341
bogdanm 85:024bf7f99721 342 /** \brief Wait For Event
bogdanm 85:024bf7f99721 343
bogdanm 85:024bf7f99721 344 Wait For Event is a hint instruction that permits the processor to enter
bogdanm 85:024bf7f99721 345 a low-power state until one of a number of events occurs.
bogdanm 85:024bf7f99721 346 */
bogdanm 85:024bf7f99721 347 __attribute__( ( always_inline ) ) __STATIC_INLINE void __WFE(void)
bogdanm 85:024bf7f99721 348 {
bogdanm 85:024bf7f99721 349 __ASM volatile ("wfe");
bogdanm 85:024bf7f99721 350 }
bogdanm 85:024bf7f99721 351
bogdanm 85:024bf7f99721 352
bogdanm 85:024bf7f99721 353 /** \brief Send Event
bogdanm 85:024bf7f99721 354
bogdanm 85:024bf7f99721 355 Send Event is a hint instruction. It causes an event to be signaled to the CPU.
bogdanm 85:024bf7f99721 356 */
bogdanm 85:024bf7f99721 357 __attribute__( ( always_inline ) ) __STATIC_INLINE void __SEV(void)
bogdanm 85:024bf7f99721 358 {
bogdanm 85:024bf7f99721 359 __ASM volatile ("sev");
bogdanm 85:024bf7f99721 360 }
bogdanm 85:024bf7f99721 361
bogdanm 85:024bf7f99721 362
bogdanm 85:024bf7f99721 363 /** \brief Instruction Synchronization Barrier
bogdanm 85:024bf7f99721 364
bogdanm 85:024bf7f99721 365 Instruction Synchronization Barrier flushes the pipeline in the processor,
bogdanm 85:024bf7f99721 366 so that all instructions following the ISB are fetched from cache or
bogdanm 85:024bf7f99721 367 memory, after the instruction has been completed.
bogdanm 85:024bf7f99721 368 */
bogdanm 85:024bf7f99721 369 __attribute__( ( always_inline ) ) __STATIC_INLINE void __ISB(void)
bogdanm 85:024bf7f99721 370 {
bogdanm 85:024bf7f99721 371 __ASM volatile ("isb");
bogdanm 85:024bf7f99721 372 }
bogdanm 85:024bf7f99721 373
bogdanm 85:024bf7f99721 374
bogdanm 85:024bf7f99721 375 /** \brief Data Synchronization Barrier
bogdanm 85:024bf7f99721 376
bogdanm 85:024bf7f99721 377 This function acts as a special kind of Data Memory Barrier.
bogdanm 85:024bf7f99721 378 It completes when all explicit memory accesses before this instruction complete.
bogdanm 85:024bf7f99721 379 */
bogdanm 85:024bf7f99721 380 __attribute__( ( always_inline ) ) __STATIC_INLINE void __DSB(void)
bogdanm 85:024bf7f99721 381 {
bogdanm 85:024bf7f99721 382 __ASM volatile ("dsb");
bogdanm 85:024bf7f99721 383 }
bogdanm 85:024bf7f99721 384
bogdanm 85:024bf7f99721 385
bogdanm 85:024bf7f99721 386 /** \brief Data Memory Barrier
bogdanm 85:024bf7f99721 387
bogdanm 85:024bf7f99721 388 This function ensures the apparent order of the explicit memory operations before
bogdanm 85:024bf7f99721 389 and after the instruction, without ensuring their completion.
bogdanm 85:024bf7f99721 390 */
bogdanm 85:024bf7f99721 391 __attribute__( ( always_inline ) ) __STATIC_INLINE void __DMB(void)
bogdanm 85:024bf7f99721 392 {
bogdanm 85:024bf7f99721 393 __ASM volatile ("dmb");
bogdanm 85:024bf7f99721 394 }
bogdanm 85:024bf7f99721 395
bogdanm 85:024bf7f99721 396
bogdanm 85:024bf7f99721 397 /** \brief Reverse byte order (32 bit)
bogdanm 85:024bf7f99721 398
bogdanm 85:024bf7f99721 399 This function reverses the byte order in integer value.
bogdanm 85:024bf7f99721 400
bogdanm 85:024bf7f99721 401 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 402 \return Reversed value
bogdanm 85:024bf7f99721 403 */
bogdanm 85:024bf7f99721 404 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value)
bogdanm 85:024bf7f99721 405 {
bogdanm 85:024bf7f99721 406 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
bogdanm 85:024bf7f99721 407 return __builtin_bswap32(value);
bogdanm 85:024bf7f99721 408 #else
bogdanm 85:024bf7f99721 409 uint32_t result;
bogdanm 85:024bf7f99721 410
bogdanm 85:024bf7f99721 411 __ASM volatile ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
bogdanm 85:024bf7f99721 412 return(result);
bogdanm 85:024bf7f99721 413 #endif
bogdanm 85:024bf7f99721 414 }
bogdanm 85:024bf7f99721 415
bogdanm 85:024bf7f99721 416
bogdanm 85:024bf7f99721 417 /** \brief Reverse byte order (16 bit)
bogdanm 85:024bf7f99721 418
bogdanm 85:024bf7f99721 419 This function reverses the byte order in two unsigned short values.
bogdanm 85:024bf7f99721 420
bogdanm 85:024bf7f99721 421 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 422 \return Reversed value
bogdanm 85:024bf7f99721 423 */
bogdanm 85:024bf7f99721 424 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value)
bogdanm 85:024bf7f99721 425 {
bogdanm 85:024bf7f99721 426 uint32_t result;
bogdanm 85:024bf7f99721 427
bogdanm 85:024bf7f99721 428 __ASM volatile ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
bogdanm 85:024bf7f99721 429 return(result);
bogdanm 85:024bf7f99721 430 }
bogdanm 85:024bf7f99721 431
bogdanm 85:024bf7f99721 432
bogdanm 85:024bf7f99721 433 /** \brief Reverse byte order in signed short value
bogdanm 85:024bf7f99721 434
bogdanm 85:024bf7f99721 435 This function reverses the byte order in a signed short value with sign extension to integer.
bogdanm 85:024bf7f99721 436
bogdanm 85:024bf7f99721 437 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 438 \return Reversed value
bogdanm 85:024bf7f99721 439 */
bogdanm 85:024bf7f99721 440 __attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value)
bogdanm 85:024bf7f99721 441 {
bogdanm 85:024bf7f99721 442 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
bogdanm 85:024bf7f99721 443 return (short)__builtin_bswap16(value);
bogdanm 85:024bf7f99721 444 #else
bogdanm 85:024bf7f99721 445 uint32_t result;
bogdanm 85:024bf7f99721 446
bogdanm 85:024bf7f99721 447 __ASM volatile ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
bogdanm 85:024bf7f99721 448 return(result);
bogdanm 85:024bf7f99721 449 #endif
bogdanm 85:024bf7f99721 450 }
bogdanm 85:024bf7f99721 451
bogdanm 85:024bf7f99721 452
bogdanm 85:024bf7f99721 453 /** \brief Rotate Right in unsigned value (32 bit)
bogdanm 85:024bf7f99721 454
bogdanm 85:024bf7f99721 455 This function Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.
bogdanm 85:024bf7f99721 456
bogdanm 85:024bf7f99721 457 \param [in] value Value to rotate
bogdanm 85:024bf7f99721 458 \param [in] value Number of Bits to rotate
bogdanm 85:024bf7f99721 459 \return Rotated value
bogdanm 85:024bf7f99721 460 */
bogdanm 85:024bf7f99721 461 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
bogdanm 85:024bf7f99721 462 {
bogdanm 85:024bf7f99721 463 return (op1 >> op2) | (op1 << (32 - op2));
bogdanm 85:024bf7f99721 464 }
bogdanm 85:024bf7f99721 465
bogdanm 85:024bf7f99721 466
bogdanm 85:024bf7f99721 467 /** \brief Breakpoint
bogdanm 85:024bf7f99721 468
bogdanm 85:024bf7f99721 469 This function causes the processor to enter Debug state.
bogdanm 85:024bf7f99721 470 Debug tools can use this to investigate system state when the instruction at a particular address is reached.
bogdanm 85:024bf7f99721 471
bogdanm 85:024bf7f99721 472 \param [in] value is ignored by the processor.
bogdanm 85:024bf7f99721 473 If required, a debugger can use it to store additional information about the breakpoint.
bogdanm 85:024bf7f99721 474 */
bogdanm 85:024bf7f99721 475 #define __BKPT(value) __ASM volatile ("bkpt "#value)
bogdanm 85:024bf7f99721 476
bogdanm 85:024bf7f99721 477
bogdanm 85:024bf7f99721 478 #if (__CORTEX_M >= 0x03)
bogdanm 85:024bf7f99721 479
bogdanm 85:024bf7f99721 480 /** \brief Reverse bit order of value
bogdanm 85:024bf7f99721 481
bogdanm 85:024bf7f99721 482 This function reverses the bit order of the given value.
bogdanm 85:024bf7f99721 483
bogdanm 85:024bf7f99721 484 \param [in] value Value to reverse
bogdanm 85:024bf7f99721 485 \return Reversed value
bogdanm 85:024bf7f99721 486 */
bogdanm 85:024bf7f99721 487 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
bogdanm 85:024bf7f99721 488 {
bogdanm 85:024bf7f99721 489 uint32_t result;
bogdanm 85:024bf7f99721 490
bogdanm 85:024bf7f99721 491 __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
bogdanm 85:024bf7f99721 492 return(result);
bogdanm 85:024bf7f99721 493 }
bogdanm 85:024bf7f99721 494
bogdanm 85:024bf7f99721 495
bogdanm 85:024bf7f99721 496 /** \brief LDR Exclusive (8 bit)
bogdanm 85:024bf7f99721 497
bogdanm 85:024bf7f99721 498 This function performs a exclusive LDR command for 8 bit value.
bogdanm 85:024bf7f99721 499
bogdanm 85:024bf7f99721 500 \param [in] ptr Pointer to data
bogdanm 85:024bf7f99721 501 \return value of type uint8_t at (*ptr)
bogdanm 85:024bf7f99721 502 */
bogdanm 85:024bf7f99721 503 __attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
bogdanm 85:024bf7f99721 504 {
bogdanm 85:024bf7f99721 505 uint32_t result;
bogdanm 85:024bf7f99721 506
bogdanm 85:024bf7f99721 507 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
bogdanm 85:024bf7f99721 508 __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) );
bogdanm 85:024bf7f99721 509 #else
bogdanm 85:024bf7f99721 510 /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
bogdanm 85:024bf7f99721 511 accepted by assembler. So has to use following less efficient pattern.
bogdanm 85:024bf7f99721 512 */
bogdanm 85:024bf7f99721 513 __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" );
bogdanm 85:024bf7f99721 514 #endif
bogdanm 85:024bf7f99721 515 return(result);
bogdanm 85:024bf7f99721 516 }
bogdanm 85:024bf7f99721 517
bogdanm 85:024bf7f99721 518
bogdanm 85:024bf7f99721 519 /** \brief LDR Exclusive (16 bit)
bogdanm 85:024bf7f99721 520
bogdanm 85:024bf7f99721 521 This function performs a exclusive LDR command for 16 bit values.
bogdanm 85:024bf7f99721 522
bogdanm 85:024bf7f99721 523 \param [in] ptr Pointer to data
bogdanm 85:024bf7f99721 524 \return value of type uint16_t at (*ptr)
bogdanm 85:024bf7f99721 525 */
bogdanm 85:024bf7f99721 526 __attribute__( ( always_inline ) ) __STATIC_INLINE uint16_t __LDREXH(volatile uint16_t *addr)
bogdanm 85:024bf7f99721 527 {
bogdanm 85:024bf7f99721 528 uint32_t result;
bogdanm 85:024bf7f99721 529
bogdanm 85:024bf7f99721 530 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
bogdanm 85:024bf7f99721 531 __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) );
bogdanm 85:024bf7f99721 532 #else
bogdanm 85:024bf7f99721 533 /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
bogdanm 85:024bf7f99721 534 accepted by assembler. So has to use following less efficient pattern.
bogdanm 85:024bf7f99721 535 */
bogdanm 85:024bf7f99721 536 __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" );
bogdanm 85:024bf7f99721 537 #endif
bogdanm 85:024bf7f99721 538 return(result);
bogdanm 85:024bf7f99721 539 }
bogdanm 85:024bf7f99721 540
bogdanm 85:024bf7f99721 541
bogdanm 85:024bf7f99721 542 /** \brief LDR Exclusive (32 bit)
bogdanm 85:024bf7f99721 543
bogdanm 85:024bf7f99721 544 This function performs a exclusive LDR command for 32 bit values.
bogdanm 85:024bf7f99721 545
bogdanm 85:024bf7f99721 546 \param [in] ptr Pointer to data
bogdanm 85:024bf7f99721 547 \return value of type uint32_t at (*ptr)
bogdanm 85:024bf7f99721 548 */
bogdanm 85:024bf7f99721 549 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __LDREXW(volatile uint32_t *addr)
bogdanm 85:024bf7f99721 550 {
bogdanm 85:024bf7f99721 551 uint32_t result;
bogdanm 85:024bf7f99721 552
bogdanm 85:024bf7f99721 553 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
bogdanm 85:024bf7f99721 554 return(result);
bogdanm 85:024bf7f99721 555 }
bogdanm 85:024bf7f99721 556
bogdanm 85:024bf7f99721 557
bogdanm 85:024bf7f99721 558 /** \brief STR Exclusive (8 bit)
bogdanm 85:024bf7f99721 559
bogdanm 85:024bf7f99721 560 This function performs a exclusive STR command for 8 bit values.
bogdanm 85:024bf7f99721 561
bogdanm 85:024bf7f99721 562 \param [in] value Value to store
bogdanm 85:024bf7f99721 563 \param [in] ptr Pointer to location
bogdanm 85:024bf7f99721 564 \return 0 Function succeeded
bogdanm 85:024bf7f99721 565 \return 1 Function failed
bogdanm 85:024bf7f99721 566 */
bogdanm 85:024bf7f99721 567 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr)
bogdanm 85:024bf7f99721 568 {
bogdanm 85:024bf7f99721 569 uint32_t result;
bogdanm 85:024bf7f99721 570
bogdanm 85:024bf7f99721 571 __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
bogdanm 85:024bf7f99721 572 return(result);
bogdanm 85:024bf7f99721 573 }
bogdanm 85:024bf7f99721 574
bogdanm 85:024bf7f99721 575
bogdanm 85:024bf7f99721 576 /** \brief STR Exclusive (16 bit)
bogdanm 85:024bf7f99721 577
bogdanm 85:024bf7f99721 578 This function performs a exclusive STR command for 16 bit values.
bogdanm 85:024bf7f99721 579
bogdanm 85:024bf7f99721 580 \param [in] value Value to store
bogdanm 85:024bf7f99721 581 \param [in] ptr Pointer to location
bogdanm 85:024bf7f99721 582 \return 0 Function succeeded
bogdanm 85:024bf7f99721 583 \return 1 Function failed
bogdanm 85:024bf7f99721 584 */
bogdanm 85:024bf7f99721 585 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr)
bogdanm 85:024bf7f99721 586 {
bogdanm 85:024bf7f99721 587 uint32_t result;
bogdanm 85:024bf7f99721 588
bogdanm 85:024bf7f99721 589 __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
bogdanm 85:024bf7f99721 590 return(result);
bogdanm 85:024bf7f99721 591 }
bogdanm 85:024bf7f99721 592
bogdanm 85:024bf7f99721 593
bogdanm 85:024bf7f99721 594 /** \brief STR Exclusive (32 bit)
bogdanm 85:024bf7f99721 595
bogdanm 85:024bf7f99721 596 This function performs a exclusive STR command for 32 bit values.
bogdanm 85:024bf7f99721 597
bogdanm 85:024bf7f99721 598 \param [in] value Value to store
bogdanm 85:024bf7f99721 599 \param [in] ptr Pointer to location
bogdanm 85:024bf7f99721 600 \return 0 Function succeeded
bogdanm 85:024bf7f99721 601 \return 1 Function failed
bogdanm 85:024bf7f99721 602 */
bogdanm 85:024bf7f99721 603 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
bogdanm 85:024bf7f99721 604 {
bogdanm 85:024bf7f99721 605 uint32_t result;
bogdanm 85:024bf7f99721 606
bogdanm 85:024bf7f99721 607 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
bogdanm 85:024bf7f99721 608 return(result);
bogdanm 85:024bf7f99721 609 }
bogdanm 85:024bf7f99721 610
bogdanm 85:024bf7f99721 611
bogdanm 85:024bf7f99721 612 /** \brief Remove the exclusive lock
bogdanm 85:024bf7f99721 613
bogdanm 85:024bf7f99721 614 This function removes the exclusive lock which is created by LDREX.
bogdanm 85:024bf7f99721 615
bogdanm 85:024bf7f99721 616 */
bogdanm 85:024bf7f99721 617 __attribute__( ( always_inline ) ) __STATIC_INLINE void __CLREX(void)
bogdanm 85:024bf7f99721 618 {
bogdanm 85:024bf7f99721 619 __ASM volatile ("clrex" ::: "memory");
bogdanm 85:024bf7f99721 620 }
bogdanm 85:024bf7f99721 621
bogdanm 85:024bf7f99721 622
bogdanm 85:024bf7f99721 623 /** \brief Signed Saturate
bogdanm 85:024bf7f99721 624
bogdanm 85:024bf7f99721 625 This function saturates a signed value.
bogdanm 85:024bf7f99721 626
bogdanm 85:024bf7f99721 627 \param [in] value Value to be saturated
bogdanm 85:024bf7f99721 628 \param [in] sat Bit position to saturate to (1..32)
bogdanm 85:024bf7f99721 629 \return Saturated value
bogdanm 85:024bf7f99721 630 */
bogdanm 85:024bf7f99721 631 #define __SSAT(ARG1,ARG2) \
bogdanm 85:024bf7f99721 632 ({ \
bogdanm 85:024bf7f99721 633 uint32_t __RES, __ARG1 = (ARG1); \
bogdanm 85:024bf7f99721 634 __ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \
bogdanm 85:024bf7f99721 635 __RES; \
bogdanm 85:024bf7f99721 636 })
bogdanm 85:024bf7f99721 637
bogdanm 85:024bf7f99721 638
bogdanm 85:024bf7f99721 639 /** \brief Unsigned Saturate
bogdanm 85:024bf7f99721 640
bogdanm 85:024bf7f99721 641 This function saturates an unsigned value.
bogdanm 85:024bf7f99721 642
bogdanm 85:024bf7f99721 643 \param [in] value Value to be saturated
bogdanm 85:024bf7f99721 644 \param [in] sat Bit position to saturate to (0..31)
bogdanm 85:024bf7f99721 645 \return Saturated value
bogdanm 85:024bf7f99721 646 */
bogdanm 85:024bf7f99721 647 #define __USAT(ARG1,ARG2) \
bogdanm 85:024bf7f99721 648 ({ \
bogdanm 85:024bf7f99721 649 uint32_t __RES, __ARG1 = (ARG1); \
bogdanm 85:024bf7f99721 650 __ASM ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \
bogdanm 85:024bf7f99721 651 __RES; \
bogdanm 85:024bf7f99721 652 })
bogdanm 85:024bf7f99721 653
bogdanm 85:024bf7f99721 654
bogdanm 85:024bf7f99721 655 /** \brief Count leading zeros
bogdanm 85:024bf7f99721 656
bogdanm 85:024bf7f99721 657 This function counts the number of leading zeros of a data value.
bogdanm 85:024bf7f99721 658
bogdanm 85:024bf7f99721 659 \param [in] value Value to count the leading zeros
bogdanm 85:024bf7f99721 660 \return number of leading zeros in value
bogdanm 85:024bf7f99721 661 */
bogdanm 85:024bf7f99721 662 __attribute__( ( always_inline ) ) __STATIC_INLINE uint8_t __CLZ(uint32_t value)
bogdanm 85:024bf7f99721 663 {
bogdanm 85:024bf7f99721 664 uint32_t result;
bogdanm 85:024bf7f99721 665
bogdanm 85:024bf7f99721 666 __ASM volatile ("clz %0, %1" : "=r" (result) : "r" (value) );
bogdanm 85:024bf7f99721 667 return(result);
bogdanm 85:024bf7f99721 668 }
bogdanm 85:024bf7f99721 669
bogdanm 85:024bf7f99721 670 #endif /* (__CORTEX_M >= 0x03) */
bogdanm 85:024bf7f99721 671
bogdanm 85:024bf7f99721 672
bogdanm 85:024bf7f99721 673
bogdanm 85:024bf7f99721 674
bogdanm 85:024bf7f99721 675 #elif defined ( __TASKING__ ) /*------------------ TASKING Compiler --------------*/
bogdanm 85:024bf7f99721 676 /* TASKING carm specific functions */
bogdanm 85:024bf7f99721 677
bogdanm 85:024bf7f99721 678 /*
bogdanm 85:024bf7f99721 679 * The CMSIS functions have been implemented as intrinsics in the compiler.
bogdanm 85:024bf7f99721 680 * Please use "carm -?i" to get an up to date list of all intrinsics,
bogdanm 85:024bf7f99721 681 * Including the CMSIS ones.
bogdanm 85:024bf7f99721 682 */
bogdanm 85:024bf7f99721 683
bogdanm 85:024bf7f99721 684 #endif
bogdanm 85:024bf7f99721 685
bogdanm 85:024bf7f99721 686 /*@}*/ /* end of group CMSIS_Core_InstructionInterface */
bogdanm 85:024bf7f99721 687
bogdanm 85:024bf7f99721 688 #endif /* __CORE_CMINSTR_H */