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.
46 lines
1005 B
C
46 lines
1005 B
C
|
|
|
|
#ifndef __FuctionRGB_H
|
|
#define __FuctionRGB_H
|
|
|
|
#include "ALLinclude.h"
|
|
|
|
// 定义时间常量
|
|
#define BIT1_HIGH 6//0.6us
|
|
#define BIT1_LOW 0//0.3us
|
|
#define BIT0_HIGH 2//0.6us
|
|
#define BIT0_LOW 3//0.3us
|
|
|
|
#define Port_LEDDout GPIOB
|
|
#define Pin_LEDDout GPIO_PIN_7
|
|
|
|
#define Port_UV_ON GPIOA
|
|
#define Pin_UV_ON GPIO_PIN_10
|
|
|
|
#define Port_UV_CE GPIOA
|
|
#define Pin_UV_CE GPIO_PIN_8
|
|
|
|
#define setOutput_H HAL_GPIO_WritePin(Port_LEDDout, Pin_LEDDout, GPIO_PIN_SET)
|
|
#define setOutput_L HAL_GPIO_WritePin(Port_LEDDout, Pin_LEDDout, GPIO_PIN_RESET)
|
|
|
|
extern QueueHandle_t at_CmdRGB;
|
|
|
|
typedef enum{
|
|
RGB_OFF = 0,
|
|
RGB_BLUE,
|
|
RGB_RED,
|
|
RGB_GREEN
|
|
}typedefEnumRGBLED;
|
|
|
|
extern void SendRGBCmd(typedefEnumRGBLED CmdData);
|
|
extern void F_RGB_IO_Init(void);
|
|
extern void F_UV_IO_Init(void);
|
|
extern void TaskRGBFunction(void *pvParamters);
|
|
extern void Function_UV_ON(void);
|
|
extern void Function_UV_OFF(void);
|
|
|
|
#endif
|
|
|
|
/************************ (C) COPYRIGHT MS *****END OF FILE******************/
|
|
|