20 lines
No EOL
857 B
C
20 lines
No EOL
857 B
C
#include "stm32f10x.h"
|
|
|
|
//TIMERS
|
|
extern void MyTimer_Base_Init ( TIM_TypeDef * Timer , unsigned short ValARR , unsigned short ValPSC );
|
|
extern void EnableTimer(void);
|
|
extern void ConfigureBroches();
|
|
extern void ConfigureTimers();
|
|
#define MyTimer_Base_Start(Timer) (Timer->CR1 |= TIM_CR1_CEN)
|
|
#define MyTimer_Base_Stop(Timer) (Timer -> CR1 =(0x0))
|
|
extern volatile int g_tick_count; // Declara que a variável existe em outro arquivo
|
|
extern void TIM2_IRQHandler(void);
|
|
extern void TIM3_IRQHandler(void);
|
|
extern void TIM4_IRQHandler(void);
|
|
extern void MyTimer_ActiveIT(TIM_TypeDef *Timer, char Prio,void(*IT_function)(void));
|
|
//PWM
|
|
extern void MyTimer_PWM(TIM_TypeDef *Timer, char Channel);
|
|
extern void MyTimer_Set_DutyCycle(TIM_TypeDef *Timer, char Channel, float DutyCycle_Percent);
|
|
void Test(void);
|
|
void ConfigureIT();
|
|
void ConfigurePWM(); |