91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 12KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-11
  • 語言: Java
  • 標簽: mtk6582??驅動??

資源簡介

mtk 6582 android4.4版本上的APDS-9930驅動,配置好gpio和中斷就可以使用,增加了自動校準功能。

資源截圖

代碼片段和文件信息

/*?drivers/hwmon/mt6516/amit/APDS9930.c?-?APDS9930?ALS/PS?driver
?*?
?*?Author:?MingHsien?Hsieh?
?*
?*?This?software?is?licensed?under?the?terms?of?the?GNU?General?Public
?*?License?version?2?as?published?by?the?Free?Software?Foundation?and
?*?may?be?copied?distributed?and?modified?under?those?terms.
?*
?*?This?program?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?*?GNU?General?Public?License?for?more?details.
?*
?*/

#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?ject.h>
#include?
#include?
#include?

#include?
#include?
#include?

#define?POWER_NONE_MACRO?MT65XX_POWER_NONE

#include?
#include?
#include?
#include?
#include?
#include?
#include?“APDS9930.h“
#include?
/******************************************************************************
?*?configuration
*******************************************************************************/
/*----------------------------------------------------------------------------*/

#define?APDS9930_DEV_NAME?????“APDS9930“
/*----------------------------------------------------------------------------*/
#define?APS_TAG??????????????????“[ALS/PS]?“
#define?APS_FUN(f)???????????????printk(KERN_INFO?APS_TAG“%s\n“?__FUNCTION__)
#define?APS_ERR(fmt?args...)????printk(KERN_ERR??APS_TAG“%s?%d?:?“fmt?__FUNCTION__?__LINE__?##args)
#define?APS_LOG(fmt?args...)????printk(KERN_ERR?APS_TAG?fmt?##args)
#define?APS_DBG(fmt?args...)????printk(KERN_INFO?APS_TAG?fmt?##args)?

#define?I2C_FLAG_WRITE 0
#define?I2C_FLAG_READ 1


/******************************************************************************
?*?extern?functions
*******************************************************************************/
extern?void?mt_eint_mask(unsigned?int?eint_num);
extern?void?mt_eint_unmask(unsigned?int?eint_num);
extern?void?mt_eint_set_hw_debounce(unsigned?int?eint_num?unsigned?int?ms);
extern?void?mt_eint_set_polarity(unsigned?int?eint_num?unsigned?int?pol);
extern?unsigned?int?mt_eint_set_sens(unsigned?int?eint_num?unsigned?int?sens);
extern?void?mt_eint_registration(unsigned?int?eint_num?unsigned?int?flow?void?(EINT_FUNC_PTR)(void)?unsigned?int?is_auto_umask);
extern?void?mt_eint_print_status(void);

/*----------------------------------------------------------------------------*/
static?struct?i2c_client?*APDS9930_i2c_client?=?NULL;
/*----------------------------------------------------------------------------*/
static?const?stru

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????3223??2013-12-05?11:37??cust_alsps.c

?????文件??????56400??2013-11-26?22:40??APDS9930.c

?????文件???????1811??2013-11-26?22:40??APDS9930.h

-----------?---------??----------?-----??----

????????????????61434????????????????????3


評論

共有 條評論