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_NUCLEO_F030R8/hal_tick.h@102:da0ca467f8b5, 2015-07-08 (annotated)
- Committer:
- Kojto
- Date:
- Wed Jul 08 11:22:30 2015 +0100
- Revision:
- 102:da0ca467f8b5
Release 102 of the mbed library
Changes:
- new platform: MPS2
- K64f - mac address fix
- Freescale Kinetis - Serial NC handling fix
- Asynch constnes fixes
- startup files .s - change extension to .S
- APPNEARME_MICRONFCBOARD rename to MICRONFCBOARD
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kojto | 102:da0ca467f8b5 | 1 | /** |
| Kojto | 102:da0ca467f8b5 | 2 | ****************************************************************************** |
| Kojto | 102:da0ca467f8b5 | 3 | * @file hal_tick.h |
| Kojto | 102:da0ca467f8b5 | 4 | * @author MCD Application Team |
| Kojto | 102:da0ca467f8b5 | 5 | * @brief Initialization of HAL tick |
| Kojto | 102:da0ca467f8b5 | 6 | ****************************************************************************** |
| Kojto | 102:da0ca467f8b5 | 7 | * @attention |
| Kojto | 102:da0ca467f8b5 | 8 | * |
| Kojto | 102:da0ca467f8b5 | 9 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
| Kojto | 102:da0ca467f8b5 | 10 | * |
| Kojto | 102:da0ca467f8b5 | 11 | * Redistribution and use in source and binary forms, with or without modification, |
| Kojto | 102:da0ca467f8b5 | 12 | * are permitted provided that the following conditions are met: |
| Kojto | 102:da0ca467f8b5 | 13 | * 1. Redistributions of source code must retain the above copyright notice, |
| Kojto | 102:da0ca467f8b5 | 14 | * this list of conditions and the following disclaimer. |
| Kojto | 102:da0ca467f8b5 | 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| Kojto | 102:da0ca467f8b5 | 16 | * this list of conditions and the following disclaimer in the documentation |
| Kojto | 102:da0ca467f8b5 | 17 | * and/or other materials provided with the distribution. |
| Kojto | 102:da0ca467f8b5 | 18 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| Kojto | 102:da0ca467f8b5 | 19 | * may be used to endorse or promote products derived from this software |
| Kojto | 102:da0ca467f8b5 | 20 | * without specific prior written permission. |
| Kojto | 102:da0ca467f8b5 | 21 | * |
| Kojto | 102:da0ca467f8b5 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| Kojto | 102:da0ca467f8b5 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| Kojto | 102:da0ca467f8b5 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| Kojto | 102:da0ca467f8b5 | 25 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| Kojto | 102:da0ca467f8b5 | 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| Kojto | 102:da0ca467f8b5 | 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| Kojto | 102:da0ca467f8b5 | 28 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| Kojto | 102:da0ca467f8b5 | 29 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| Kojto | 102:da0ca467f8b5 | 30 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| Kojto | 102:da0ca467f8b5 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Kojto | 102:da0ca467f8b5 | 32 | * |
| Kojto | 102:da0ca467f8b5 | 33 | ****************************************************************************** |
| Kojto | 102:da0ca467f8b5 | 34 | */ |
| Kojto | 102:da0ca467f8b5 | 35 | #ifndef __HAL_TICK_H |
| Kojto | 102:da0ca467f8b5 | 36 | #define __HAL_TICK_H |
| Kojto | 102:da0ca467f8b5 | 37 | |
| Kojto | 102:da0ca467f8b5 | 38 | #ifdef __cplusplus |
| Kojto | 102:da0ca467f8b5 | 39 | extern "C" { |
| Kojto | 102:da0ca467f8b5 | 40 | #endif |
| Kojto | 102:da0ca467f8b5 | 41 | |
| Kojto | 102:da0ca467f8b5 | 42 | #include "stm32f0xx.h" |
| Kojto | 102:da0ca467f8b5 | 43 | #include "cmsis_nvic.h" |
| Kojto | 102:da0ca467f8b5 | 44 | |
| Kojto | 102:da0ca467f8b5 | 45 | #define TIM_MST TIM1 |
| Kojto | 102:da0ca467f8b5 | 46 | #define TIM_MST_UP_IRQ TIM1_BRK_UP_TRG_COM_IRQn |
| Kojto | 102:da0ca467f8b5 | 47 | #define TIM_MST_OC_IRQ TIM1_CC_IRQn |
| Kojto | 102:da0ca467f8b5 | 48 | #define TIM_MST_RCC __TIM1_CLK_ENABLE() |
| Kojto | 102:da0ca467f8b5 | 49 | |
| Kojto | 102:da0ca467f8b5 | 50 | #define TIM_MST_RESET_ON __TIM1_FORCE_RESET() |
| Kojto | 102:da0ca467f8b5 | 51 | #define TIM_MST_RESET_OFF __TIM1_RELEASE_RESET() |
| Kojto | 102:da0ca467f8b5 | 52 | |
| Kojto | 102:da0ca467f8b5 | 53 | #define HAL_TICK_DELAY (1000) // 1 ms |
| Kojto | 102:da0ca467f8b5 | 54 | |
| Kojto | 102:da0ca467f8b5 | 55 | |
| Kojto | 102:da0ca467f8b5 | 56 | #ifdef __cplusplus |
| Kojto | 102:da0ca467f8b5 | 57 | } |
| Kojto | 102:da0ca467f8b5 | 58 | #endif |
| Kojto | 102:da0ca467f8b5 | 59 | |
| Kojto | 102:da0ca467f8b5 | 60 | #endif // __HAL_TICK_H |
| Kojto | 102:da0ca467f8b5 | 61 | |
| Kojto | 102:da0ca467f8b5 | 62 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |


