#ifndef _TIMER_STM32_H_
#define _TIMER_STM32_H_
//----------------------------------------------------------------------------
///
/// \brief  Timer unit
///
///         See implementation files for further information.
//
/// \date   20210903
/// \author Maximilian Seesslen <development@seesslen.net>
///
//----------------------------------------------------------------------------


//---Includes-----------------------------------------------------------------


//---Own------------------------------

#include <biwak/timer.hpp>
#include <HALWrapper/stm32_tim.h>
#include <biwak/rcc.h>


//---Forward declarations-----------------------------------------------------


extern CTimer *interruptTim1;
extern CTimer *interruptTim2;
extern CTimer *interruptTim3;
extern CTimer *interruptTim6;
extern CTimer *interruptTim7;
extern CTimer *interruptTim8;
extern CTimer *interruptTim14;
extern CTimer *interruptTim10;

struct STimerConfig{
   TIM_TypeDef *instance;
   IRQn_Type irqn;
   EPeripheral ePeripheral;
   CTimer* &interrupt;
} ;


//---fin----------------------------------------------------------------------
#endif // ? ! _TIMER_STM32_H_
