meh

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Wed Jun 11 15:14:05 2014 +0100
Revision:
85:024bf7f99721
Release 85 of the mbed library

Main changes:

- K64F Ethernet fixes
- Updated tests
- Fixes for various mbed targets
- Code cleanup: fixed warnings, more consistent code style
- GCC support for K64F

There is a known issue with the I2C interface on some ST targets. If you
find the I2C interface problematic on your ST board, please log a bug
against this on mbed.org.

Who changed what in which revision?

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