20 lines
296 B
C
20 lines
296 B
C
#ifndef _PWM_BOARD_H
|
|
#define _PWM_BOARD_H
|
|
|
|
#include "stm32l0xx_hal.h"
|
|
#include "stgpio.h"
|
|
#include "tim.h"
|
|
|
|
#define PWM_DIO 0//设置为普通IO空输出
|
|
#define PWM_PWM 1//设置为PWM输出
|
|
|
|
void PwmInfoInit (void);
|
|
void PwmInfoSetDuty (int index, int duty);
|
|
void PwmInfoStop (int index) ;
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|