The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Parent:
TARGET_NUCLEO_F302R8/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/device/us_ticker_data.h@170:e95d10626187
mbed library. Release version 164

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 170:e95d10626187 1 /* mbed Microcontroller Library
AnnaBridge 170:e95d10626187 2 * Copyright (c) 2006-2018 ARM Limited
AnnaBridge 170:e95d10626187 3 *
AnnaBridge 170:e95d10626187 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 170:e95d10626187 5 * you may not use this file except in compliance with the License.
AnnaBridge 170:e95d10626187 6 * You may obtain a copy of the License at
AnnaBridge 170:e95d10626187 7 *
AnnaBridge 170:e95d10626187 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 170:e95d10626187 9 *
AnnaBridge 170:e95d10626187 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 170:e95d10626187 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 170:e95d10626187 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 170:e95d10626187 13 * See the License for the specific language governing permissions and
AnnaBridge 170:e95d10626187 14 * limitations under the License.
AnnaBridge 170:e95d10626187 15 */
AnnaBridge 170:e95d10626187 16 #ifndef __US_TICKER_DATA_H
AnnaBridge 170:e95d10626187 17 #define __US_TICKER_DATA_H
AnnaBridge 170:e95d10626187 18
AnnaBridge 170:e95d10626187 19 #ifdef __cplusplus
AnnaBridge 170:e95d10626187 20 extern "C" {
AnnaBridge 170:e95d10626187 21 #endif
AnnaBridge 170:e95d10626187 22
AnnaBridge 170:e95d10626187 23 #include "stm32f3xx.h"
AnnaBridge 170:e95d10626187 24 #include "stm32f3xx_ll_tim.h"
AnnaBridge 170:e95d10626187 25 #include "cmsis_nvic.h"
AnnaBridge 170:e95d10626187 26
AnnaBridge 170:e95d10626187 27 #define TIM_MST TIM2
AnnaBridge 170:e95d10626187 28 #define TIM_MST_IRQ TIM2_IRQn
AnnaBridge 170:e95d10626187 29 #define TIM_MST_RCC __HAL_RCC_TIM2_CLK_ENABLE()
AnnaBridge 170:e95d10626187 30 #define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM2()
AnnaBridge 170:e95d10626187 31
AnnaBridge 170:e95d10626187 32 #define TIM_MST_RESET_ON __HAL_RCC_TIM2_FORCE_RESET()
AnnaBridge 170:e95d10626187 33 #define TIM_MST_RESET_OFF __HAL_RCC_TIM2_RELEASE_RESET()
AnnaBridge 170:e95d10626187 34
AnnaBridge 170:e95d10626187 35 #define TIM_MST_BIT_WIDTH 32 // 16 or 32
AnnaBridge 170:e95d10626187 36
AnnaBridge 170:e95d10626187 37 #define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
AnnaBridge 170:e95d10626187 38
AnnaBridge 170:e95d10626187 39
AnnaBridge 170:e95d10626187 40 #ifdef __cplusplus
AnnaBridge 170:e95d10626187 41 }
AnnaBridge 170:e95d10626187 42 #endif
AnnaBridge 170:e95d10626187 43
AnnaBridge 170:e95d10626187 44 #endif // __US_TICKER_DATA_H
AnnaBridge 170:e95d10626187 45