mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/us_ticker_data.h@189:f392fc9709a3, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 22:31:08 2019 +0000
- Revision:
- 189:f392fc9709a3
- Parent:
- 187:0387e8f68319
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 187:0387e8f68319 | 1 | /* mbed Microcontroller Library |
AnnaBridge | 187:0387e8f68319 | 2 | * Copyright (c) 2006-2018 ARM Limited |
AnnaBridge | 187:0387e8f68319 | 3 | * |
AnnaBridge | 187:0387e8f68319 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 187:0387e8f68319 | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 187:0387e8f68319 | 6 | * You may obtain a copy of the License at |
AnnaBridge | 187:0387e8f68319 | 7 | * |
AnnaBridge | 187:0387e8f68319 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 187:0387e8f68319 | 9 | * |
AnnaBridge | 187:0387e8f68319 | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 187:0387e8f68319 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 187:0387e8f68319 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 187:0387e8f68319 | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 187:0387e8f68319 | 14 | * limitations under the License. |
AnnaBridge | 187:0387e8f68319 | 15 | */ |
AnnaBridge | 187:0387e8f68319 | 16 | #ifndef __US_TICKER_DATA_H |
AnnaBridge | 187:0387e8f68319 | 17 | #define __US_TICKER_DATA_H |
AnnaBridge | 187:0387e8f68319 | 18 | |
AnnaBridge | 187:0387e8f68319 | 19 | #ifdef __cplusplus |
AnnaBridge | 187:0387e8f68319 | 20 | extern "C" { |
AnnaBridge | 187:0387e8f68319 | 21 | #endif |
AnnaBridge | 187:0387e8f68319 | 22 | |
AnnaBridge | 187:0387e8f68319 | 23 | #include "stm32l1xx.h" |
AnnaBridge | 187:0387e8f68319 | 24 | #include "stm32l1xx_ll_tim.h" |
AnnaBridge | 187:0387e8f68319 | 25 | #include "cmsis_nvic.h" |
AnnaBridge | 187:0387e8f68319 | 26 | |
AnnaBridge | 187:0387e8f68319 | 27 | #define TIM_MST TIM5 |
AnnaBridge | 187:0387e8f68319 | 28 | #define TIM_MST_IRQ TIM5_IRQn |
AnnaBridge | 187:0387e8f68319 | 29 | #define TIM_MST_RCC __TIM5_CLK_ENABLE() |
AnnaBridge | 187:0387e8f68319 | 30 | #define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM5() |
AnnaBridge | 187:0387e8f68319 | 31 | |
AnnaBridge | 187:0387e8f68319 | 32 | #define TIM_MST_RESET_ON __TIM5_FORCE_RESET() |
AnnaBridge | 187:0387e8f68319 | 33 | #define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET() |
AnnaBridge | 187:0387e8f68319 | 34 | |
AnnaBridge | 187:0387e8f68319 | 35 | #define TIM_MST_BIT_WIDTH 32 // 16 or 32 |
AnnaBridge | 187:0387e8f68319 | 36 | |
AnnaBridge | 187:0387e8f68319 | 37 | #define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2) |
AnnaBridge | 187:0387e8f68319 | 38 | |
AnnaBridge | 187:0387e8f68319 | 39 | |
AnnaBridge | 187:0387e8f68319 | 40 | #ifdef __cplusplus |
AnnaBridge | 187:0387e8f68319 | 41 | } |
AnnaBridge | 187:0387e8f68319 | 42 | #endif |
AnnaBridge | 187:0387e8f68319 | 43 | |
AnnaBridge | 187:0387e8f68319 | 44 | #endif // __US_TICKER_DATA_H |
AnnaBridge | 187:0387e8f68319 | 45 |