Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | /** |
2 | ****************************************************************************** |
||
3 | * @file stm32f0xx_hal_cortex.h |
||
4 | * @author MCD Application Team |
||
5 | * @brief Header file of CORTEX HAL module. |
||
6 | ****************************************************************************** |
||
7 | * @attention |
||
8 | * |
||
9 | * <h2><center>© Copyright (c) 2016 STMicroelectronics. |
||
10 | * All rights reserved.</center></h2> |
||
11 | * |
||
12 | * This software component is licensed by ST under BSD 3-Clause license, |
||
13 | * the "License"; You may not use this file except in compliance with the |
||
14 | * License. You may obtain a copy of the License at: |
||
15 | * opensource.org/licenses/BSD-3-Clause |
||
16 | * |
||
17 | ****************************************************************************** |
||
18 | */ |
||
19 | |||
20 | /* Define to prevent recursive inclusion -------------------------------------*/ |
||
21 | #ifndef __STM32F0xx_HAL_CORTEX_H |
||
22 | #define __STM32F0xx_HAL_CORTEX_H |
||
23 | |||
24 | #ifdef __cplusplus |
||
25 | extern "C" { |
||
26 | #endif |
||
27 | |||
28 | /* Includes ------------------------------------------------------------------*/ |
||
29 | #include "stm32f0xx_hal_def.h" |
||
30 | |||
31 | /** @addtogroup STM32F0xx_HAL_Driver |
||
32 | * @{ |
||
33 | */ |
||
34 | |||
35 | /** @addtogroup CORTEX CORTEX |
||
36 | * @{ |
||
37 | */ |
||
38 | /* Exported types ------------------------------------------------------------*/ |
||
39 | /* Exported constants --------------------------------------------------------*/ |
||
40 | |||
41 | /** @defgroup CORTEX_Exported_Constants CORTEX Exported Constants |
||
42 | * @{ |
||
43 | */ |
||
44 | |||
45 | /** @defgroup CORTEX_SysTick_clock_source CORTEX SysTick clock source |
||
46 | * @{ |
||
47 | */ |
||
48 | #define SYSTICK_CLKSOURCE_HCLK_DIV8 (0x00000000U) |
||
49 | #define SYSTICK_CLKSOURCE_HCLK (0x00000004U) |
||
50 | |||
51 | /** |
||
52 | * @} |
||
53 | */ |
||
54 | |||
55 | /** |
||
56 | * @} |
||
57 | */ |
||
58 | |||
59 | /* Exported Macros -----------------------------------------------------------*/ |
||
60 | |||
61 | /* Exported functions --------------------------------------------------------*/ |
||
62 | /** @addtogroup CORTEX_Exported_Functions CORTEX Exported Functions |
||
63 | * @{ |
||
64 | */ |
||
65 | /** @addtogroup CORTEX_Exported_Functions_Group1 Initialization and de-initialization functions |
||
66 | * @brief Initialization and Configuration functions |
||
67 | * @{ |
||
68 | */ |
||
69 | /* Initialization and de-initialization functions *******************************/ |
||
70 | void HAL_NVIC_SetPriority(IRQn_Type IRQn,uint32_t PreemptPriority, uint32_t SubPriority); |
||
71 | void HAL_NVIC_EnableIRQ(IRQn_Type IRQn); |
||
72 | void HAL_NVIC_DisableIRQ(IRQn_Type IRQn); |
||
73 | void HAL_NVIC_SystemReset(void); |
||
74 | uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb); |
||
75 | /** |
||
76 | * @} |
||
77 | */ |
||
78 | |||
79 | /** @addtogroup CORTEX_Exported_Functions_Group2 Peripheral Control functions |
||
80 | * @brief Cortex control functions |
||
81 | * @{ |
||
82 | */ |
||
83 | |||
84 | /* Peripheral Control functions *************************************************/ |
||
85 | uint32_t HAL_NVIC_GetPriority(IRQn_Type IRQn); |
||
86 | uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn); |
||
87 | void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn); |
||
88 | void HAL_NVIC_ClearPendingIRQ(IRQn_Type IRQn); |
||
89 | void HAL_SYSTICK_CLKSourceConfig(uint32_t CLKSource); |
||
90 | void HAL_SYSTICK_IRQHandler(void); |
||
91 | void HAL_SYSTICK_Callback(void); |
||
92 | /** |
||
93 | * @} |
||
94 | */ |
||
95 | |||
96 | /** |
||
97 | * @} |
||
98 | */ |
||
99 | |||
100 | /* Private types -------------------------------------------------------------*/ |
||
101 | /* Private variables ---------------------------------------------------------*/ |
||
102 | /* Private constants ---------------------------------------------------------*/ |
||
103 | /* Private macros ------------------------------------------------------------*/ |
||
104 | /** @defgroup CORTEX_Private_Macros CORTEX Private Macros |
||
105 | * @{ |
||
106 | */ |
||
107 | #define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x4) |
||
108 | |||
109 | #define IS_NVIC_DEVICE_IRQ(IRQ) ((IRQ) >= 0x00) |
||
110 | |||
111 | #define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SYSTICK_CLKSOURCE_HCLK) || \ |
||
112 | ((SOURCE) == SYSTICK_CLKSOURCE_HCLK_DIV8)) |
||
113 | /** |
||
114 | * @} |
||
115 | */ |
||
116 | |||
117 | /** |
||
118 | * @} |
||
119 | */ |
||
120 | |||
121 | /** |
||
122 | * @} |
||
123 | */ |
||
124 | |||
125 | #ifdef __cplusplus |
||
126 | } |
||
127 | #endif |
||
128 | |||
129 | #endif /* __STM32F0xx_HAL_CORTEX_H */ |
||
130 | |||
131 | |||
132 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
||
133 |