14 lines
285 B
C
14 lines
285 B
C
#ifndef _PWM_H
|
|
#define _PWM_H
|
|
|
|
#include "system.h"
|
|
|
|
#define M_Enable GPIO_SetBits(GPIOC,GPIO_Pin_14);
|
|
#define M_Disable GPIO_ResetBits(GPIOC,GPIO_Pin_14);
|
|
extern uint32_t time1_cntr;
|
|
extern uint32_t time2_cntr;
|
|
void TIM2_PWM_Init(void);
|
|
void TIM4_1ms_Init(void);
|
|
|
|
#endif
|