
2.修改开关FCD_EN时的死机问题 3.修改快速开关FCD_EN信号时出现花屏的问题 4.修改cola_set_event事件参数,都是一个32bit的整数,每个事件占用1个bit 5.将B+高低压ADC判断改为电压mv判断 6.修改lvds lock信号消抖时间 7.修改不接lvds线时,快速开关FCD_EN不进入BIST模式的问题 8.添加A样相关资料
34 lines
614 B
C
34 lines
614 B
C
/*
|
|
* fml_gpio.c
|
|
*
|
|
* Created on: 2025年4月8日
|
|
* Author: 22332
|
|
*/
|
|
#include <stdio.h>
|
|
#include "cola_init.h"
|
|
#include "cola_device.h"
|
|
#include "cola_os.h"
|
|
#include "fml_gpio.h"
|
|
#include <string.h>
|
|
extern void logWrite(const char *fmt, ...);
|
|
|
|
static cola_device_t *g_pDevgpio = NULL;
|
|
|
|
bool fml_gpio_read(uint8_t pos)
|
|
{
|
|
return cola_device_read(g_pDevgpio,pos,0,0)?true:false;
|
|
}
|
|
|
|
void fml_gpio_write(uint8_t pos,bool status)
|
|
{
|
|
cola_device_write(g_pDevgpio,pos,0,status);
|
|
}
|
|
|
|
void fml_gpio_init(void)
|
|
{
|
|
g_pDevgpio = cola_device_find("GPIO");
|
|
if(g_pDevgpio)
|
|
cola_device_open(g_pDevgpio, 0);
|
|
}
|
|
|