You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
563 B
C
31 lines
563 B
C
|
|
#ifndef __driver_UV_H__
|
|
#define __driver_UV_H__
|
|
|
|
#include <stdint.h>
|
|
#include "main.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define Port_UV_CE GPIOA
|
|
#define Pin_UV_CE GPIO_PIN_8
|
|
|
|
#define EN_UV HAL_GPIO_WritePin(Port_UV_CE,Pin_UV_CE,GPIO_PIN_SET)
|
|
#define Dis_UV HAL_GPIO_WritePin(Port_UV_CE,Pin_UV_CE,GPIO_PIN_RESET)
|
|
|
|
|
|
extern TIM_HandleTypeDef TimHandle1;
|
|
extern TIM_OC_InitTypeDef sConfig1;
|
|
extern void StartUV(uint32_t PeriodValue,uint32_t DutyValue);
|
|
extern void StopMotor(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __DRIVER_GC9C01_H__ */
|
|
|