dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_tim.c File Reference
#include "pios.h"
#include "pios_tim.h"
#include "pios_tim_priv.h"

Go to the source code of this file.

Data Structures

struct  pios_tim_dev
 

Enumerations

enum  pios_tim_dev_magic { PIOS_TIM_DEV_MAGIC = 0x87654098, PIOS_TIM_DEV_MAGIC = 0x87654098, PIOS_TIM_DEV_MAGIC = 0x87654098, PIOS_TIM_DEV_MAGIC = 0x87654098 }
 

Functions

static struct pios_tim_devPIOS_TIM_alloc (void)
 
int32_t PIOS_TIM_InitClock (const struct pios_tim_clock_cfg *cfg)
 
void PIOS_TIM_InitTimerPin (uintptr_t tim_id, int idx)
 
void PIOS_TIM_InitAllTimerPins (uintptr_t tim_id)
 
void PIOS_TIM_SetBankToGPOut (uintptr_t tim_id, TIM_TypeDef *timer)
 
int32_t PIOS_TIM_InitChannels (uintptr_t *tim_id, const struct pios_tim_channel *channels, uint8_t num_channels, const struct pios_tim_callbacks *callbacks, uintptr_t context)
 
static void PIOS_TIM_generic_irq_handler (TIM_TypeDef *timer)
 
void TIM1_CC_IRQHandler (void)
 
void TIM1_BRK_TIM9_IRQHandler (void)
 
void TIM1_UP_TIM10_IRQHandler (void)
 
void TIM1_TRG_COM_TIM11_IRQHandler (void)
 
void TIM2_IRQHandler (void)
 
void TIM3_IRQHandler (void)
 
void TIM4_IRQHandler (void)
 
void TIM5_IRQHandler (void)
 
void TIM6_DAC_IRQHandler (void)
 
void TIM7_IRQHandler (void)
 
void TIM8_CC_IRQHandler (void)
 
void TIM8_BRK_TIM12_IRQHandler (void)
 
void TIM8_UP_TIM13_IRQHandler (void)
 
void TIM8_TRG_COM_TIM14_IRQHandler (void)
 

Variables

static struct pios_tim_dev pios_tim_devs [PIOS_TIM_MAX_DEVS]
 
static uint8_t pios_tim_num_devs
 

Function Documentation

static struct pios_tim_dev* PIOS_TIM_alloc ( void  )
static

Definition at line 54 of file pios_tim.c.

static void PIOS_TIM_generic_irq_handler ( TIM_TypeDef *  timer)
static

Definition at line 167 of file pios_tim.c.