Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

CMSIS

CMSIS

Modules

 CMSIS CM3 Core Lint Configuration
 

List of Lint messages which will be suppressed and not shown:

  • Error 10:
    register uint32_t __regBasePri __asm("basepri");
    Error 10: Expecting ';'
  • Error 530:
    return(__regBasePri);
    Warning 530: Symbol '__regBasePri' (line 264) not initialized
  • Error 550:
    __regBasePri = (basePri & 0x1ff);
    Warning 550: Symbol '__regBasePri' (line 271) not accessed
  • Error 754:
    uint32_t RESERVED0[24];
    Info 754: local structure member '<some, not used in the HAL>' (line 109, file .

 CMSIS CM3 Core Definitions
 

This file defines all structures and symbols for CMSIS core:

  • CMSIS version number
  • Cortex-M core registers and bitfields
  • Cortex-M core peripheral base address.

Functions

__ASM uint32_t __get_PSP (void)
 Return the Process Stack Pointer.
__ASM void __set_PSP (uint32_t topOfProcStack)
 Set the Process Stack Pointer.
__ASM uint32_t __get_MSP (void)
 Return the Main Stack Pointer.
__ASM void __set_MSP (uint32_t mainStackPointer)
 Set the Main Stack Pointer.
__ASM uint32_t __REV16 (uint16_t value)
 Reverse byte order in unsigned short value.
__ASM int32_t __REVSH (int16_t value)
 Reverse byte order in signed short value with sign extension to integer.
__ASM void __CLREX (void)
 Remove the exclusive lock created by ldrex.
__ASM uint32_t __get_BASEPRI (void)
 Return the Base Priority value.
__ASM void __set_BASEPRI (uint32_t basePri)
 Set the Base Priority value.
__ASM uint32_t __get_PRIMASK (void)
 Return the Priority Mask value.
__ASM void __set_PRIMASK (uint32_t priMask)
 Set the Priority Mask value.
__ASM uint32_t __get_FAULTMASK (void)
 Return the Fault Mask value.
__ASM void __set_FAULTMASK (uint32_t faultMask)
 Set the Fault Mask value.
__ASM uint32_t __get_CONTROL (void)
 Return the Control Register value.
__ASM void __set_CONTROL (uint32_t control)
 Set the Control Register value.
uint32_t __RBIT (uint32_t value)
 Reverse bit order of value.
uint8_t __LDREXB (uint8_t *addr)
 LDR Exclusive (8 bit)
uint16_t __LDREXH (uint16_t *addr)
 LDR Exclusive (16 bit)
uint32_t __LDREXW (uint32_t *addr)
 LDR Exclusive (32 bit)
uint32_t __STREXB (uint8_t value, uint8_t *addr)
 STR Exclusive (8 bit)
uint32_t __STREXH (uint16_t value, uint16_t *addr)
 STR Exclusive (16 bit)
uint32_t __STREXW (uint32_t value, uint32_t *addr)
 STR Exclusive (32 bit)
uint32_t __REV (uint32_t value)
 Reverse byte order in integer value.

Function Documentation

__ASM void __CLREX ( void   )

Remove the exclusive lock created by ldrex.

Removes the exclusive lock which is created by ldrex.

Definition at line 147 of file core_cm3.c.

uint32_t __get_BASEPRI ( void   )

Return the Base Priority value.

Returns:
BasePriority

Return the content of the base priority register

Definition at line 159 of file core_cm3.c.

uint32_t __get_CONTROL ( void   )

Return the Control Register value.

Returns:
Control value

Return the content of the control register

Definition at line 237 of file core_cm3.c.

uint32_t __get_FAULTMASK ( void   )

Return the Fault Mask value.

Returns:
FaultMask

Return the content of the fault mask register

Definition at line 211 of file core_cm3.c.

uint32_t __get_MSP ( void   )

Return the Main Stack Pointer.

Returns:
Main Stack Pointer

Return the current value of the MSP (main stack pointer) Cortex processor register

Definition at line 91 of file core_cm3.c.

uint32_t __get_PRIMASK ( void   )

Return the Priority Mask value.

Returns:
PriMask

Return state of the priority mask bit from the priority mask register

Definition at line 185 of file core_cm3.c.

uint32_t __get_PSP ( void   )

Return the Process Stack Pointer.

Returns:
ProcessStackPointer

Return the actual process stack pointer

Definition at line 63 of file core_cm3.c.

uint8_t __LDREXB ( uint8_t *  addr )

LDR Exclusive (8 bit)

Parameters:
*addraddress pointer
Returns:
value of (*address)

Exclusive LDR command for 8 bit values)

Parameters:
*addraddress pointer
Returns:
value of (*address)

Exclusive LDR command for 8 bit value

Definition at line 355 of file core_cm3.c.

uint16_t __LDREXH ( uint16_t *  addr )

LDR Exclusive (16 bit)

Parameters:
*addraddress pointer
Returns:
value of (*address)

Exclusive LDR command for 16 bit values

Definition at line 369 of file core_cm3.c.

uint32_t __LDREXW ( uint32_t *  addr )

LDR Exclusive (32 bit)

Parameters:
*addraddress pointer
Returns:
value of (*address)

Exclusive LDR command for 32 bit values

Definition at line 383 of file core_cm3.c.

uint32_t __RBIT ( uint32_t  value )

Reverse bit order of value.

Parameters:
valuevalue to reverse
Returns:
reversed value

Reverse bit order of value

Definition at line 341 of file core_cm3.c.

uint32_t __REV ( uint32_t  value )

Reverse byte order in integer value.

Parameters:
valuevalue to reverse
Returns:
reversed value

Reverse byte order in integer value

Definition at line 624 of file core_cm3.c.

uint32_t __REV16 ( uint16_t  value )

Reverse byte order in unsigned short value.

Parameters:
valuevalue to reverse
Returns:
reversed value

Reverse byte order in unsigned short value

Definition at line 119 of file core_cm3.c.

int32_t __REVSH ( int16_t  value )

Reverse byte order in signed short value with sign extension to integer.

Parameters:
valuevalue to reverse
Returns:
reversed value

Reverse byte order in signed short value with sign extension to integer

Definition at line 133 of file core_cm3.c.

void __set_BASEPRI ( uint32_t  value )

Set the Base Priority value.

Parameters:
basePriBasePriority

Set the base priority register

Definition at line 172 of file core_cm3.c.

void __set_CONTROL ( uint32_t  control )

Set the Control Register value.

Parameters:
controlControl value

Set the control register

Definition at line 250 of file core_cm3.c.

void __set_FAULTMASK ( uint32_t  faultMask )

Set the Fault Mask value.

Parameters:
faultMaskfaultMask value

Set the fault mask register

Definition at line 224 of file core_cm3.c.

void __set_MSP ( uint32_t  topOfMainStack )

Set the Main Stack Pointer.

Parameters:
topOfMainStackMain Stack Pointer

Assign the value mainStackPointer to the MSP (main stack pointer) Cortex processor register

Definition at line 105 of file core_cm3.c.

void __set_PRIMASK ( uint32_t  priMask )

Set the Priority Mask value.

Parameters:
priMaskPriMask

Set the priority mask bit in the priority mask register

Definition at line 198 of file core_cm3.c.

void __set_PSP ( uint32_t  topOfProcStack )

Set the Process Stack Pointer.

Parameters:
topOfProcStackProcess Stack Pointer

Assign the value ProcessStackPointer to the MSP (process stack pointer) Cortex processor register

Definition at line 77 of file core_cm3.c.

uint32_t __STREXB ( uint8_t  value,
uint8_t *  addr 
)

STR Exclusive (8 bit)

Parameters:
valuevalue to store
*addraddress pointer
Returns:
successful / failed

Exclusive STR command for 8 bit values

Definition at line 398 of file core_cm3.c.

uint32_t __STREXH ( uint16_t  value,
uint16_t *  addr 
)

STR Exclusive (16 bit)

Parameters:
valuevalue to store
*addraddress pointer
Returns:
successful / failed

Exclusive STR command for 16 bit values

Definition at line 413 of file core_cm3.c.

uint32_t __STREXW ( uint32_t  value,
uint32_t *  addr 
)

STR Exclusive (32 bit)

Parameters:
valuevalue to store
*addraddress pointer
Returns:
successful / failed

Exclusive STR command for 32 bit values

Definition at line 428 of file core_cm3.c.