mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

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
Kojto 122:f9eeca106725 52 #define HAL_TICK_DELAY (1000) // 1 ms
Kojto 122:f9eeca106725 53
Kojto 122:f9eeca106725 54 #ifdef __cplusplus
Kojto 122:f9eeca106725 55 }
Kojto 122:f9eeca106725 56 #endif
Kojto 122:f9eeca106725 57
Kojto 122:f9eeca106725 58 #endif // __HAL_TICK_H
Kojto 122:f9eeca106725 59
Kojto 122:f9eeca106725 60 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/