1 |
608 |
jeremybenn |
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
|
2 |
|
|
* File Name : cortexm3_macro.h
|
3 |
|
|
* Author : MCD Application Team
|
4 |
|
|
* Date First Issued : 09/29/2006
|
5 |
|
|
* Description : Header file for cortexm3_macro.s.
|
6 |
|
|
********************************************************************************
|
7 |
|
|
* History:
|
8 |
|
|
* 04/02/2007: V0.2
|
9 |
|
|
* 02/05/2007: V0.1
|
10 |
|
|
* 09/29/2006: V0.01
|
11 |
|
|
********************************************************************************
|
12 |
|
|
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
13 |
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
|
14 |
|
|
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
|
15 |
|
|
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
|
16 |
|
|
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
|
17 |
|
|
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
18 |
|
|
*******************************************************************************/
|
19 |
|
|
|
20 |
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
21 |
|
|
#ifndef __CORTEXM3_MACRO_H
|
22 |
|
|
#define __CORTEXM3_MACRO_H
|
23 |
|
|
|
24 |
|
|
/* Includes ------------------------------------------------------------------*/
|
25 |
|
|
#include "stm32f10x_type.h"
|
26 |
|
|
|
27 |
|
|
/* Exported types ------------------------------------------------------------*/
|
28 |
|
|
/* Exported constants --------------------------------------------------------*/
|
29 |
|
|
/* Exported macro ------------------------------------------------------------*/
|
30 |
|
|
/* Exported functions ------------------------------------------------------- */
|
31 |
|
|
void __WFI(void);
|
32 |
|
|
void __WFE(void);
|
33 |
|
|
void __SEV(void);
|
34 |
|
|
void __ISB(void);
|
35 |
|
|
void __DSB(void);
|
36 |
|
|
void __DMB(void);
|
37 |
|
|
void __SVC(void);
|
38 |
|
|
u32 __MRS_CONTROL(void);
|
39 |
|
|
void __MSR_CONTROL(u32 Control);
|
40 |
|
|
void __SETPRIMASK(void);
|
41 |
|
|
void __RESETPRIMASK(void);
|
42 |
|
|
void __SETFAULTMASK(void);
|
43 |
|
|
void __RESETFAULTMASK(void);
|
44 |
|
|
void __BASEPRICONFIG(u32 NewPriority);
|
45 |
|
|
u32 __GetBASEPRI(void);
|
46 |
|
|
u16 __REV_HalfWord(u16 Data);
|
47 |
|
|
u32 __REV_Word(u32 Data);
|
48 |
|
|
|
49 |
|
|
#endif /* __CORTEXM3_MACRO_H */
|
50 |
|
|
|
51 |
|
|
/******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/
|