#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) |
|
◆ CC_CHANNELS_PER_TIMER
#define CC_CHANNELS_PER_TIMER 4 |
◆ channelConfig_t
◆ timerConfig_t
◆ anonymous enum
Enumerator |
---|
TIM1_IDX | |
TIM2_IDX | |
TIM3_IDX | |
TIM4_IDX | |
MAX_TIMERS | |
Definition at line 91 of file drv_timer.c.
◆ configTimeBase()
void configTimeBase |
( |
TIM_TypeDef * |
tim, |
|
|
uint16_t |
period, |
|
|
uint8_t |
mhz |
|
) |
| |
◆ configureTimerCaptureCompareInterrupt()
◆ configureTimerChannelCallback()
◆ configureTimerInputCaptureCompareChannel()
void configureTimerInputCaptureCompareChannel |
( |
TIM_TypeDef * |
tim, |
|
|
const uint8_t |
channel |
|
) |
| |
◆ findTimerConfig()
static timerConfig_t* findTimerConfig |
( |
unsigned int |
timerIndex, |
|
|
unsigned int |
channelIndex |
|
) |
| |
|
static |
◆ lookupChannelIndex()
static int lookupChannelIndex |
( |
const int |
channel | ) |
|
|
static |
◆ lookupTimerIndex()
◆ TIM1_CC_IRQHandler()
void TIM1_CC_IRQHandler |
( |
void |
| ) |
|
◆ TIM2_IRQHandler()
void TIM2_IRQHandler |
( |
void |
| ) |
|
◆ TIM3_IRQHandler()
void TIM3_IRQHandler |
( |
void |
| ) |
|
◆ TIM4_IRQHandler()
void TIM4_IRQHandler |
( |
void |
| ) |
|
◆ timCCxHandler()
static void timCCxHandler |
( |
TIM_TypeDef *const |
tim, |
|
|
unsigned int |
timerIndex |
|
) |
| |
|
static |
◆ timerConfigure()
void timerConfigure |
( |
const timerHardware_t * |
timerHardwarePtr, |
|
|
uint16_t |
period, |
|
|
uint8_t |
mhz |
|
) |
| |
◆ timerNVICConfigure()
void timerNVICConfigure |
( |
uint8_t |
irq | ) |
|
◆ channels
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.
◆ timerConfigs
◆ timerHardware
◆ timers