pwm.h
345 字节
#ifndef __PWM_H
#define __PWM_H
#include "stm32f4xx_hal.h"
#include "stm32f4xx.h"
#define psc (84-1) //预分频系数
#define arr (1000-1) //重装载值
extern TIM_HandleTypeDef h_tim3; //爆闪灯
extern TIM_OC_InitTypeDef s_ConfigOC;
void PWM_Init(void);
void Set_Laser_Value(uint16_t value);
void Is_Laser_Enable(uint8_t val);
#endif