mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Tue Feb 14 11:24:20 2017 +0000
Revision:
136:ef9c61f8c49f
Parent:
TARGET_NUCLEO_F446ZE/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/device/hal_tick.h@132:9baf128c2fab
Child:
145:64910690c574
Release 136 of the mbed library

Ports for Upcoming Targets


Fixes and Changes

3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 122:f9eeca106725 1 /**
Kojto 122:f9eeca106725 2 ******************************************************************************
Kojto 122:f9eeca106725 3 * @file hal_tick.h
Kojto 122:f9eeca106725 4 * @author MCD Application Team
Kojto 122:f9eeca106725 5 * @brief Initialization of HAL tick
Kojto 122:f9eeca106725 6 ******************************************************************************
Kojto 122:f9eeca106725 7 * @attention
Kojto 122:f9eeca106725 8 *
Kojto 122:f9eeca106725 9 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
Kojto 122:f9eeca106725 10 *
Kojto 122:f9eeca106725 11 * Redistribution and use in source and binary forms, with or without modification,
Kojto 122:f9eeca106725 12 * are permitted provided that the following conditions are met:
Kojto 122:f9eeca106725 13 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 122:f9eeca106725 14 * this list of conditions and the following disclaimer.
Kojto 122:f9eeca106725 15 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 122:f9eeca106725 16 * this list of conditions and the following disclaimer in the documentation
Kojto 122:f9eeca106725 17 * and/or other materials provided with the distribution.
Kojto 122:f9eeca106725 18 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 122:f9eeca106725 19 * may be used to endorse or promote products derived from this software
Kojto 122:f9eeca106725 20 * without specific prior written permission.
Kojto 122:f9eeca106725 21 *
Kojto 122:f9eeca106725 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 122:f9eeca106725 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 122:f9eeca106725 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 122:f9eeca106725 25 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 122:f9eeca106725 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 122:f9eeca106725 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 122:f9eeca106725 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 122:f9eeca106725 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 122:f9eeca106725 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 122:f9eeca106725 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 122:f9eeca106725 32 *
Kojto 122:f9eeca106725 33 ******************************************************************************
Kojto 122:f9eeca106725 34 */
Kojto 122:f9eeca106725 35 #ifndef __HAL_TICK_H
Kojto 122:f9eeca106725 36 #define __HAL_TICK_H
Kojto 122:f9eeca106725 37
Kojto 122:f9eeca106725 38 #ifdef __cplusplus
Kojto 122:f9eeca106725 39 extern "C" {
Kojto 122:f9eeca106725 40 #endif
Kojto 122:f9eeca106725 41
Kojto 122:f9eeca106725 42 #include "stm32f4xx.h"
Kojto 122:f9eeca106725 43 #include "cmsis_nvic.h"
Kojto 122:f9eeca106725 44
Kojto 122:f9eeca106725 45 #define TIM_MST TIM5
Kojto 122:f9eeca106725 46 #define TIM_MST_IRQ TIM5_IRQn
Kojto 122:f9eeca106725 47 #define TIM_MST_RCC __TIM5_CLK_ENABLE()
Kojto 122:f9eeca106725 48
Kojto 122:f9eeca106725 49 #define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
Kojto 122:f9eeca106725 50 #define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
Kojto 122:f9eeca106725 51
<> 132:9baf128c2fab 52 #define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
<> 132:9baf128c2fab 53
<> 132:9baf128c2fab 54 #define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
<> 132:9baf128c2fab 55
Kojto 122:f9eeca106725 56 #define HAL_TICK_DELAY (1000) // 1 ms
Kojto 122:f9eeca106725 57
Kojto 122:f9eeca106725 58 #ifdef __cplusplus
Kojto 122:f9eeca106725 59 }
Kojto 122:f9eeca106725 60 #endif
Kojto 122:f9eeca106725 61
Kojto 122:f9eeca106725 62 #endif // __HAL_TICK_H
Kojto 122:f9eeca106725 63
Kojto 122:f9eeca106725 64 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/