Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
106:ba1f97679dad
.

Who changed what in which revision?

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