Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
timerDmaCache.h File Reference
#include <ch.h>
#include <hal.h>
#include <string.h>
#include "mcu_periph/hal_stm32_dma.h"
+ Include dependency graph for timerDmaCache.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TimerDmaCache
 

Functions

void timerDmaCache_cache (TimerDmaCache *tdcp, const DMADriver *fromDma, const stm32_tim_t *fromTim)
 
void timerDmaCache_restore (const TimerDmaCache *tdcp, DMADriver *toDma, stm32_tim_t *toTim)
 

Data Structure Documentation

◆ TimerDmaCache

struct TimerDmaCache

Definition at line 10 of file timerDmaCache.h.

Data Fields
DMA_Stream_TypeDef DMA_regs
stm32_tim_t TIM_regs

Function Documentation

◆ timerDmaCache_cache()

void timerDmaCache_cache ( TimerDmaCache tdcp,
const DMADriver fromDma,
const stm32_tim_t *  fromTim 
)

Definition at line 9 of file timerDmaCache.c.

References TimerDmaCache::DMA_regs, DMADriver::dmastream, and TimerDmaCache::TIM_regs.

Referenced by initCache().

+ Here is the caller graph for this function:

◆ timerDmaCache_restore()

void timerDmaCache_restore ( const TimerDmaCache tdcp,
DMADriver toDma,
stm32_tim_t *  toTim 
)

Definition at line 17 of file timerDmaCache.c.

References TimerDmaCache::DMA_regs, DMADriver::dmastream, rccEnableAndReset(), and TimerDmaCache::TIM_regs.

Referenced by startCapture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: