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

  • 大小: 853KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-01
  • 語言: 其他
  • 標簽: QMA6981??驅動??

資源簡介

QST 加速度傳感器QMA6981 MTK6737驅動,QST 加速度傳感器QMA6981 MTK6737驅動

資源截圖

代碼片段和文件信息

/*?qma6981?motion?sensor?driver
?*
?*
?*
?*?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?“qma6981.h“


#define?QMA6981_STEP_COUNTER
#ifdef?QMA6981_STEP_COUNTER
#define?QMA6981_STEP_COUNTER_USE_INT
#define?QMA6981_CHECK_ABNORMAL_DATA
//#define?QMA6981_STEP_TO_ZERO
#define?QMA6981_SELECT_AXIS
#endif


#include?
#include?
#include?
#include?

?//step?counter
#include?
#include?
#ifdef?QMA6981_STEP_COUNTER
#include?
#endif
#include?

//prize-lixuefeng-20150512-start
#if?defined(CONFIG_PRIZE_HARDWARE_INFO)
#include?“../../hardware_info/hardware_info.h“

extern?struct?hardware_info?current_gsensor_info;
#endif
//prize-lixuefeng-20150512-end

#define?QMA6981_RETRY_COUNT?3

#define?qma6981_BUFSIZE 256

#define?GSE_TAG??????????????????“[QMA-Gsensor]?“
#define?GSE_ERR(fmt?args...)????pr_err(GSE_TAG?“%s?%d?:?“?fmt?__FUNCTION__?__LINE__?##args)
#define?GSE_FUN(f)???????????????pr_err(GSE_TAG?“%s\n“?__FUNCTION__)
#define?GSE_DEBUG
#ifdef?GSE_DEBUG
#define?GSE_LOG(fmt?args...)????printk(“%s?%d?:?“?fmt?__FUNCTION__?__LINE__?##args)
#else
#define?GSE_LOG(fmt?args...)????
#endif

#define?kal_bool??? bool
#define?KAL_TRUE true
#define?KAL_FALSE false

static?struct?acc_hw?accel_cust;
static?struct?acc_hw?*hw?=?&accel_cust;
static?int?qma6981_init_flag?=0;

static?DEFINE_MUTEX(qma6981_init_mutex);
static?DEFINE_MUTEX(qma6981_mutex);

#if?defined(QMA6981_STEP_COUNTER_USE_INT)
//extern?struct?platform_device?*get_acc_platformdev(void);
//struct?platform_device?*accPltFmDev;
#endif


#if?defined(CONFIG_HAS_EARLYSUSPEND)
static?void?qma6981_early_suspend(struct?early_suspend?*h);
static?void?qma6981_late_resume(struct?early_suspend?*h);
#endif


static?struct?acc_init_info?qma6981_init_info;
#ifdef?QMA6981_STEP_COUNTER
static?struct?step_c_init_info?qma6981_step_c_init_info;
static?struct?wake_lock?sc_wakelock;
static?kal_bool?wake_lock_status?=?KAL_FALSE;
static?int?sc_reset_flag?=?KAL_TRUE;//?store?last?data
static?int?qma6981_step_c_read_stepCounter(int?*data);
static?void?qma6981_set_wakelock(int?en);

#if?1//defined(QMA6981_STEP_TO_ZERO)
static?char?qma6981_reg13_value?=?0x10;
#endif
#define?QMA6981_REG13_LOW_VALUE 0x0c //0x0a
#define?QMA6981_REG13_HIGH_VALUE 0x11 //0x10

#endif


struct?qma6981_data{
struct? acc_hw?*hw;
struct? i2c_client?*client;
struct? hwmsen_convert???cvt;
int? ?sensitivity;
????atomic_t??? ?layout;
atomic_t?????????????????trace;
atomic_

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

?????文件????????204??2016-09-21?20:51??accelerometer\Kconfig

?????文件????????149??2016-09-21?20:50??accelerometer\Makefile

?????文件??????81670??2017-09-01?15:44??accelerometer\qma6981\qma6981.c

?????文件??????80524??2017-06-07?12:28??accelerometer\qma6981\qma6981.c.bak

?????文件???????1768??2017-02-15?09:53??accelerometer\qma6981\qma6981.h

?????文件??????24942??2017-02-17?11:35??step_counter\step_counter.c

?????文件???????3710??2017-02-17?11:35??step_counter\step_counter.h

?????文件?????394793??2017-07-04?10:28??圖片\config.jpg

?????文件?????428040??2017-07-04?10:27??圖片\project.jpg

?????文件???????2069??2017-02-17?10:15??cust_eint.dtsi

?????文件??????88625??2017-02-21?14:55??mt6735.dtsi

?????文件??????34479??2017-03-07?22:29??pri6737t_66_m0.dts

?????文件???????1975??2017-07-04?10:33??移植說明.txt

?????目錄??????????0??2017-09-01?15:44??accelerometer\qma6981

?????目錄??????????0??2017-09-01?10:28??accelerometer

?????目錄??????????0??2017-09-01?10:28??step_counter

?????目錄??????????0??2017-09-01?15:45??圖片

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

??????????????1142948????????????????????17


評論

共有 條評論