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.
TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/us_ticker_data.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New 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 |