Elijah Orr / mbed-renbed

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
Kojto
Date:
Tue Jun 09 14:29:26 2015 +0100
Revision:
101:7cff1c4259d7
Release 101 of the mbed library

Changes:
- new platform: APPNEARME_MICRONFCBOARD, MTS_DRAGONFLY_F411RE, MAX32600MBED, WIZwiki_W7500
- Silabs memory optimization in gpio, pwm fixes
- SPI - ssel documentation fixes and its use

Who changed what in which revision?

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