Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed May 13 08:08:21 2015 +0200
Revision:
99:dbbf35b96557
Child:
110:165afa46840b
Release 99 of the mbed library

Changes:
- new targets - MAXWSNENV, DISCO_L053C8
- STM32F4xx - ST Cube driver
- KSDK mcu - SPI timing fix
- Nordic - update to softdevice s130

Who changed what in which revision?

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