rau cha / mbed-src-I2CWaitFix

Fork of mbed-src by mbed official

Embed: (wiki syntax)

« Back to documentation index

core_cm3.c File Reference

core_cm3.c File Reference

CMSIS Cortex-M3 Core Peripheral Access Layer Source File. More...

Go to the source code of this file.

Functions

__ASM uint32_t __REV16 (uint32_t value)
 Reverse byte order (16 bit)
__ASM int32_t __REVSH (int32_t value)
 Reverse byte order in signed short value.
__ASM void __CLREX (void)
 Remove the exclusive lock.
__ASM uint32_t __get_CONTROL (void)
 Get Control Register.
__ASM void __set_CONTROL (uint32_t control)
 Set Control Register.
__ASM uint32_t __get_IPSR (void)
 Get ISPR Register.
__ASM uint32_t __get_APSR (void)
 Get APSR Register.
__ASM uint32_t __get_xPSR (void)
 Get xPSR Register.
__ASM uint32_t __get_PSP (void)
 Get Process Stack Pointer.
__ASM void __set_PSP (uint32_t topOfProcStack)
 Set Process Stack Pointer.
__ASM uint32_t __get_MSP (void)
 Get Main Stack Pointer.
__ASM void __set_MSP (uint32_t mainStackPointer)
 Set Main Stack Pointer.
__ASM uint32_t __get_BASEPRI (void)
 Get Base Priority.
__ASM void __set_BASEPRI (uint32_t basePri)
 Set Base Priority.
__ASM uint32_t __get_PRIMASK (void)
 Get Priority Mask.
__ASM void __set_PRIMASK (uint32_t priMask)
 Set Priority Mask.
__ASM uint32_t __get_FAULTMASK (void)
 Get Fault Mask.
__ASM void __set_FAULTMASK (uint32_t faultMask)
 Set the Fault Mask.

Detailed Description

CMSIS Cortex-M3 Core Peripheral Access Layer Source File.

Version:
V2.02
Date:
24. March 2011
Note:
Copyright (C) 2009-2010 ARM Limited. All rights reserved.
ARM Limited (ARM) is supplying this software for use with Cortex-M processor based microcontrollers. This file can be freely distributed within development tools that are supporting such ARM based processors.
THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file core_cm3.c.


Function Documentation

__ASM void __CLREX ( void   )

Remove the exclusive lock.

This function removes the exclusive lock which is created by LDREX.

Definition at line 88 of file core_cm3.c.

__ASM uint32_t __get_APSR ( void   )

Get APSR Register.

This function returns the content of the APSR Register.

Returns:
APSR Register value

Definition at line 160 of file core_cm3.c.

__ASM uint32_t __get_BASEPRI ( void   )

Get Base Priority.

This function returns the current value of the Base Priority register.

Returns:
Base Priority register value

Definition at line 250 of file core_cm3.c.

__ASM uint32_t __get_CONTROL ( void   )

Get Control Register.

This function returns the content of the Control Register.

Returns:
Control Register value

Definition at line 115 of file core_cm3.c.

__ASM uint32_t __get_FAULTMASK ( void   )

Get Fault Mask.

This function returns the current value of the Fault Mask Register.

Returns:
Fault Mask value

Definition at line 309 of file core_cm3.c.

__ASM uint32_t __get_IPSR ( void   )

Get ISPR Register.

This function returns the content of the ISPR Register.

Returns:
ISPR Register value

Definition at line 145 of file core_cm3.c.

__ASM uint32_t __get_PRIMASK ( void   )

Get Priority Mask.

This function returns the current state of the priority mask bit from the Priority Mask Register.

Returns:
Priority Mask value

Definition at line 279 of file core_cm3.c.

__ASM uint32_t __get_PSP ( void   )

Get Process Stack Pointer.

This function returns the current value of the Process Stack Pointer (PSP).

Returns:
PSP Register value

Definition at line 190 of file core_cm3.c.

__ASM uint32_t __get_xPSR ( void   )

Get xPSR Register.

This function returns the content of the xPSR Register.

Returns:
xPSR Register value

Definition at line 175 of file core_cm3.c.

__ASM uint32_t __REV16 ( uint32_t  value )

Reverse byte order (16 bit)

This function reverses the byte order in two unsigned short values.

Parameters:
[in]valueValue to reverse
Returns:
Reversed value

Definition at line 58 of file core_cm3.c.

__ASM int32_t __REVSH ( int32_t  value )

Reverse byte order in signed short value.

This function reverses the byte order in a signed short value with sign extension to integer.

Parameters:
[in]valueValue to reverse
Returns:
Reversed value

Definition at line 74 of file core_cm3.c.

__ASM void __set_BASEPRI ( uint32_t  basePri )

Set Base Priority.

This function assigns the given value to the Base Priority register.

Parameters:
[in]basePriBase Priority value to set

Definition at line 265 of file core_cm3.c.

__ASM void __set_CONTROL ( uint32_t  control )

Set Control Register.

This function writes the given value to the Control Register.

Parameters:
[in]controlControl Register value to set

Definition at line 130 of file core_cm3.c.

__ASM void __set_FAULTMASK ( uint32_t  faultMask )

Set the Fault Mask.

This function assigns the given value to the Fault Mask Register.

Parameters:
[in]faultMaskFault Mask value value to set

Definition at line 324 of file core_cm3.c.

__ASM void __set_MSP ( uint32_t  mainStackPointer )

Set Main Stack Pointer.

This function assigns the given value to the Main Stack Pointer (MSP).

Parameters:
[in]topOfMainStackMain Stack Pointer value to set

Definition at line 235 of file core_cm3.c.

__ASM void __set_PRIMASK ( uint32_t  priMask )

Set Priority Mask.

This function assigns the given value to the Priority Mask Register.

Parameters:
[in]priMaskPriority Mask

Definition at line 294 of file core_cm3.c.

__ASM void __set_PSP ( uint32_t  topOfProcStack )

Set Process Stack Pointer.

This function assigns the given value to the Process Stack Pointer (PSP).

Parameters:
[in]topOfProcStackProcess Stack Pointer value to set

Definition at line 205 of file core_cm3.c.