Files
Gamble/MPU6050/APP/pwm.h
2023-12-18 14:36:22 +08:00

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