contiki/cpu/stm32w108/dev/cortexm3-macro.h

61 lines
1.7 KiB
C
Raw Normal View History

/**
* \addtogroup stm32w-cpu
*
* @{
*/
2010-10-25 09:03:38 +00:00
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : cortexm3-macro.h
2010-10-25 09:03:38 +00:00
* Author : MCD Application Team
* Version : V2.0.3
* Date : 09/22/2008
* Description : Header file for cortexm3_macro.s.
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
#ifndef __CORTEXM3_MACRO_H
#define __CORTEXM3_MACRO_H
#include "stm32w_type.h"
void __WFI(void);
void __WFE(void);
void __SEV(void);
void __ISB(void);
void __DSB(void);
void __DMB(void);
void __SVC(void);
2010-10-25 09:03:38 +00:00
u32 __MRS_CONTROL(void);
void __MSR_CONTROL(u32 Control);
2010-10-25 09:03:38 +00:00
u32 __MRS_PSP(void);
void __MSR_PSP(u32 TopOfProcessStack);
2010-10-25 09:03:38 +00:00
u32 __MRS_MSP(void);
void __MSR_MSP(u32 TopOfMainStack);
2010-10-25 09:03:38 +00:00
void __RESETPRIMASK(void);
void __SETPRIMASK(void);
u32 __READ_PRIMASK(void);
void __RESETFAULTMASK(void);
void __SETFAULTMASK(void);
u32 __READ_FAULTMASK(void);
2010-10-25 09:03:38 +00:00
void __BASEPRICONFIG(u32 NewPriority);
2010-10-25 09:03:38 +00:00
u32 __GetBASEPRI(void);
2010-10-25 09:03:38 +00:00
u16 __REV_HalfWord(u16 Data);
u32 __REV_Word(u32 Data);
#endif /* __CORTEXM3_MACRO_H */
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/
/** @} */