Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_B96B_F446VE/hal_tick.h@114:252557024ec3, 2016-02-16 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 16 14:28:01 2016 +0000
- Revision:
- 114:252557024ec3
- Parent:
- 112:6f327212ef96
Release 114 of the mbed library
Changes:
- Atmel SAM - warnings fixes
- B96B F446VE - hw control flow addition
- Remove of GCC CW which was not active
- Remove GCC CS, not released anymore - deprecated
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kojto | 112:6f327212ef96 | 1 | /** |
| Kojto | 112:6f327212ef96 | 2 | ****************************************************************************** |
| Kojto | 112:6f327212ef96 | 3 | * @file hal_tick.h |
| Kojto | 112:6f327212ef96 | 4 | * @author MCD Application Team |
| Kojto | 112:6f327212ef96 | 5 | * @brief Initialization of HAL tick |
| Kojto | 112:6f327212ef96 | 6 | ****************************************************************************** |
| Kojto | 112:6f327212ef96 | 7 | * @attention |
| Kojto | 112:6f327212ef96 | 8 | * |
| Kojto | 112:6f327212ef96 | 9 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
| Kojto | 112:6f327212ef96 | 10 | * |
| Kojto | 112:6f327212ef96 | 11 | * Redistribution and use in source and binary forms, with or without modification, |
| Kojto | 112:6f327212ef96 | 12 | * are permitted provided that the following conditions are met: |
| Kojto | 112:6f327212ef96 | 13 | * 1. Redistributions of source code must retain the above copyright notice, |
| Kojto | 112:6f327212ef96 | 14 | * this list of conditions and the following disclaimer. |
| Kojto | 112:6f327212ef96 | 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| Kojto | 112:6f327212ef96 | 16 | * this list of conditions and the following disclaimer in the documentation |
| Kojto | 112:6f327212ef96 | 17 | * and/or other materials provided with the distribution. |
| Kojto | 112:6f327212ef96 | 18 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| Kojto | 112:6f327212ef96 | 19 | * may be used to endorse or promote products derived from this software |
| Kojto | 112:6f327212ef96 | 20 | * without specific prior written permission. |
| Kojto | 112:6f327212ef96 | 21 | * |
| Kojto | 112:6f327212ef96 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Kojto | 112:6f327212ef96 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Kojto | 112:6f327212ef96 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Kojto | 112:6f327212ef96 | 25 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| Kojto | 112:6f327212ef96 | 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| Kojto | 112:6f327212ef96 | 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| Kojto | 112:6f327212ef96 | 28 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| Kojto | 112:6f327212ef96 | 29 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| Kojto | 112:6f327212ef96 | 30 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| Kojto | 112:6f327212ef96 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Kojto | 112:6f327212ef96 | 32 | * |
| Kojto | 112:6f327212ef96 | 33 | ****************************************************************************** |
| Kojto | 112:6f327212ef96 | 34 | */ |
| Kojto | 112:6f327212ef96 | 35 | #ifndef __HAL_TICK_H |
| Kojto | 112:6f327212ef96 | 36 | #define __HAL_TICK_H |
| Kojto | 112:6f327212ef96 | 37 | |
| Kojto | 112:6f327212ef96 | 38 | #ifdef __cplusplus |
| Kojto | 112:6f327212ef96 | 39 | extern "C" { |
| Kojto | 112:6f327212ef96 | 40 | #endif |
| Kojto | 112:6f327212ef96 | 41 | |
| Kojto | 112:6f327212ef96 | 42 | #include "stm32f4xx.h" |
| Kojto | 112:6f327212ef96 | 43 | #include "cmsis_nvic.h" |
| Kojto | 112:6f327212ef96 | 44 | |
| Kojto | 112:6f327212ef96 | 45 | #define TIM_MST TIM5 |
| Kojto | 112:6f327212ef96 | 46 | #define TIM_MST_IRQ TIM5_IRQn |
| Kojto | 112:6f327212ef96 | 47 | #define TIM_MST_RCC __TIM5_CLK_ENABLE() |
| Kojto | 112:6f327212ef96 | 48 | |
| Kojto | 112:6f327212ef96 | 49 | #define TIM_MST_RESET_ON __TIM5_FORCE_RESET() |
| Kojto | 112:6f327212ef96 | 50 | #define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET() |
| Kojto | 112:6f327212ef96 | 51 | |
| Kojto | 112:6f327212ef96 | 52 | #define HAL_TICK_DELAY (1000) // 1 ms |
| Kojto | 112:6f327212ef96 | 53 | |
| Kojto | 112:6f327212ef96 | 54 | #ifdef __cplusplus |
| Kojto | 112:6f327212ef96 | 55 | } |
| Kojto | 112:6f327212ef96 | 56 | #endif |
| Kojto | 112:6f327212ef96 | 57 | |
| Kojto | 112:6f327212ef96 | 58 | #endif // __HAL_TICK_H |
| Kojto | 112:6f327212ef96 | 59 | |
| Kojto | 112:6f327212ef96 | 60 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |


