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:
Kojto
Date:
Fri Oct 02 07:35:07 2015 +0200
Revision:
108:34e6b704fe68
Child:
110:165afa46840b
Release 108  of the mbed library

Changes:
- new platforms - ELMO_F411RE, WIZNET_7500P, ARM_MPS2_BEID
- EFM32 - bugfixes in rtc, serial
- Cortex A cmsis - update files
- STML4 - RAM fixes

Who changed what in which revision?

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