#include <stdbool.h>
#include "stm32f10x_conf.h"
#include "core_cm3.h"
#include "drv_timer.h"
#include "drv_gpio.h"
Go to the source code of this file.
|
| void | configTimeBase (TIM_TypeDef *tim, uint16_t period, uint8_t mhz) |
| |
| void | configureTimerCaptureCompareInterrupt (const timerHardware_t *timerHardwarePtr, uint8_t reference, timerCCCallbackPtr *callback) |
| |
| void | configureTimerChannelCallback (TIM_TypeDef *tim, uint8_t channel, uint8_t reference, timerCCCallbackPtr *callback) |
| |
| void | configureTimerInputCaptureCompareChannel (TIM_TypeDef *tim, const uint8_t channel) |
| |
| static timerConfig_t * | findTimerConfig (unsigned int timerIndex, unsigned int channelIndex) |
| |
| static int | lookupChannelIndex (const int channel) |
| |
| static int | lookupTimerIndex (const TIM_TypeDef *tim) |
| |
| void | TIM1_CC_IRQHandler (void) |
| |
| void | TIM2_IRQHandler (void) |
| |
| void | TIM3_IRQHandler (void) |
| |
| void | TIM4_IRQHandler (void) |
| |
| static void | timCCxHandler (TIM_TypeDef *const tim, unsigned int timerIndex) |
| |
| void | timerConfigure (const timerHardware_t *timerHardwarePtr, uint16_t period, uint8_t mhz) |
| |
| void | timerNVICConfigure (uint8_t irq) |
| |
| #define CC_CHANNELS_PER_TIMER 4 |
| Enumerator |
|---|
| TIM1_IDX |
|
| TIM2_IDX |
|
| TIM3_IDX |
|
| TIM4_IDX |
|
| MAX_TIMERS |
|
Definition at line 91 of file drv_timer.c.
| void configTimeBase |
( |
TIM_TypeDef * |
tim, |
|
|
uint16_t |
period, |
|
|
uint8_t |
mhz |
|
) |
| |
| void configureTimerInputCaptureCompareChannel |
( |
TIM_TypeDef * |
tim, |
|
|
const uint8_t |
channel |
|
) |
| |
| static timerConfig_t* findTimerConfig |
( |
unsigned int |
timerIndex, |
|
|
unsigned int |
channelIndex |
|
) |
| |
|
static |
| static int lookupChannelIndex |
( |
const int |
channel | ) |
|
|
static |
| void TIM1_CC_IRQHandler |
( |
void |
| ) |
|
| void TIM2_IRQHandler |
( |
void |
| ) |
|
| void TIM3_IRQHandler |
( |
void |
| ) |
|
| void TIM4_IRQHandler |
( |
void |
| ) |
|
| static void timCCxHandler |
( |
TIM_TypeDef *const |
tim, |
|
|
unsigned int |
timerIndex |
|
) |
| |
|
static |
| void timerConfigure |
( |
const timerHardware_t * |
timerHardwarePtr, |
|
|
uint16_t |
period, |
|
|
uint8_t |
mhz |
|
) |
| |
| void timerNVICConfigure |
( |
uint8_t |
irq | ) |
|
Initial value:= {
}
uint32_t TIM_GetCapture3(TIM_TypeDef *TIMx)
Gets the TIMx Input Capture 3 value.
uint32_t TIM_GetCapture1(TIM_TypeDef *TIMx)
Gets the TIMx Input Capture 1 value.
uint32_t TIM_GetCapture2(TIM_TypeDef *TIMx)
Gets the TIMx Input Capture 2 value.
uint32_t TIM_GetCapture4(TIM_TypeDef *TIMx)
Gets the TIMx Input Capture 4 value.
Definition at line 111 of file drv_timer.c.