Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 5 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /** |
1 | /** |
| 2 | ****************************************************************************** |
2 | ****************************************************************************** |
| 3 | * @file stm32f1xx_hal_cortex.h |
3 | * @file stm32f1xx_hal_cortex.h |
| 4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
| 5 | * @version V1.0.1 |
5 | * @version V1.0.4 |
| 6 | * @date 31-July-2015 |
6 | * @date 29-April-2016 |
| 7 | * @brief Header file of CORTEX HAL module. |
7 | * @brief Header file of CORTEX HAL module. |
| 8 | ****************************************************************************** |
8 | ****************************************************************************** |
| 9 | * @attention |
9 | * @attention |
| 10 | * |
10 | * |
| 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
| 12 | * |
12 | * |
| 13 | * Redistribution and use in source and binary forms, with or without modification, |
13 | * Redistribution and use in source and binary forms, with or without modification, |
| 14 | * are permitted provided that the following conditions are met: |
14 | * are permitted provided that the following conditions are met: |
| 15 | * 1. Redistributions of source code must retain the above copyright notice, |
15 | * 1. Redistributions of source code must retain the above copyright notice, |
| 16 | * this list of conditions and the following disclaimer. |
16 | * this list of conditions and the following disclaimer. |
| Line 263... | Line 263... | ||
| 263 | 263 | ||
| 264 | /** |
264 | /** |
| 265 | * @} |
265 | * @} |
| 266 | */ |
266 | */ |
| 267 | 267 | ||
| 268 | /* Exported Macros -----------------------------------------------------------*/ |
- | |
| 269 | /** @defgroup CORTEX_Exported_Macros CORTEX Exported Macros |
- | |
| 270 | * @{ |
- | |
| 271 | */ |
- | |
| 272 | - | ||
| 273 | /** @defgroup CORTEX_SysTick_clock_source_Macro_Exported CORTEX SysTick clock source |
- | |
| 274 | * @{ |
- | |
| 275 | */ |
- | |
| 276 | - | ||
| 277 | /** @brief Configures the SysTick clock source. |
- | |
| 278 | * @param __CLKSRC__: specifies the SysTick clock source. |
- | |
| 279 | * This parameter can be one of the following values: |
- | |
| 280 | * @arg SYSTICK_CLKSOURCE_HCLK_DIV8: AHB clock divided by 8 selected as SysTick clock source. |
- | |
| 281 | * @arg SYSTICK_CLKSOURCE_HCLK: AHB clock selected as SysTick clock source. |
- | |
| 282 | * @retval None |
- | |
| 283 | */ |
- | |
| 284 | #define __HAL_CORTEX_SYSTICKCLK_CONFIG(__CLKSRC__) \ |
- | |
| 285 | do { \ |
- | |
| 286 | if ((__CLKSRC__) == SYSTICK_CLKSOURCE_HCLK) \ |
- | |
| 287 | { \ |
- | |
| 288 | SET_BIT(SysTick->CTRL, SYSTICK_CLKSOURCE_HCLK); \ |
- | |
| 289 | } \ |
- | |
| 290 | else \ |
- | |
| 291 | CLEAR_BIT(SysTick->CTRL, SYSTICK_CLKSOURCE_HCLK); \ |
- | |
| 292 | } while(0) |
- | |
| 293 | /** |
- | |
| 294 | * @} |
- | |
| 295 | */ |
- | |
| 296 | - | ||
| 297 | /** |
- | |
| 298 | * @} |
- | |
| 299 | */ |
- | |
| 300 | 268 | ||
| 301 | /* Private macro -------------------------------------------------------------*/ |
269 | /* Private macro -------------------------------------------------------------*/ |
| 302 | /** @defgroup CORTEX_Private_Macros CORTEX Private Macros |
270 | /** @defgroup CORTEX_Private_Macros CORTEX Private Macros |
| 303 | * @{ |
271 | * @{ |
| 304 | */ |
272 | */ |