initial commit
This commit is contained in:
18
hal/hal_ircut/t40/hal_interface_ircut_t40.c
Executable file
18
hal/hal_ircut/t40/hal_interface_ircut_t40.c
Executable file
@@ -0,0 +1,18 @@
|
||||
#include "hal_product_config.h"
|
||||
#include "hal_interface_ircut.h"
|
||||
#include "hal_interface_gpio.h"
|
||||
#include "mmc.h"
|
||||
|
||||
#include "hlog.h"
|
||||
|
||||
void hal_ircut_switch(IRCUT_MODE mode){
|
||||
if (mode != IRCUT_UNKNOWN){
|
||||
hal_gpio_output(GPIO_IRCUT_ENB, mode == IRCUT_DAY);
|
||||
hal_gpio_output(GPIO_IRCUT_FBC, mode != IRCUT_DAY);
|
||||
hv_msleep(150);
|
||||
hal_gpio_output(GPIO_IRCUT_ENB,0);
|
||||
hal_gpio_output(GPIO_IRCUT_FBC,0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user