首页 > 编程知识 正文

安卓mqtt调试工具,mtkp70

时间:2023-05-04 11:55:43 阅读:163501 作者:3542

MTK 9.0平台调试gsensor ----型号为stk8baxx 1 查看原理图可以知道stk8baxx重力传感器 使用i2c1通道进行通讯,由于该重力传感器是不使用中断模式的进行触发的,所以不需要配置中断引脚。由此可以配置stk8baxx重力传感器的dts

dts文件的结构如下。

dts文件路径为 kernel-4.4archarmbootdtsaiot 8362 am3 _ bsp.dts

gsensor_mtk{status='okay '; (; i2c1 {clock-div=2; pinctrl-names='default '; pinctrl-0=i2c1_pins_a; status='okay '; 时钟频率=400000; STK8baxx @ 18 { compatible=' mediatek,STK8baxx '; reg=0x18; i2c_num=1; i2c_addr=0x18 0 0 0; 目录=0; power_id=0xffff; power_vol=0; firlen=0; is_batch_supported=0; status='okay '; (; } kernel-4.4archarmbootdtsmt8167.dtsi

gsensor _ MTK : gsensor @0{ compatible=' mediatek,gsensor '; (;2 配置aiot8362am3_bsp_defconfig和aiot8362am3_bsp_debug_defconfig文件以及配置相关的Makefile和Kconfig

2.1配置aiot 8362 am3 _ bsp _ defconfig和aiot 8362 am3 _ bsp _ debug _ defconfig文件

文件路径为 kernel-4.4archarmconfigsaiot 8362 am3 _ bsp _ debug _ defconfig和 kernel-4.4 arch _ arch am

# g-sensor config _ custom _ kernel _ accelerometer=yconfig _ MTK _ STK8baxx=y http://www.Sina.com /

2.2 配置相关的Makefile和Kconfig

source ' drivers/misc/mediatek/sensors-1.0/accelerometer/STK8baxx/kconfig ' http://www.Sina.com /

obj-$(config_MTK_STK8baxx )=stk8baxx/kernel-4.4driversmiscmediateksensors-1.0accelerometerKconfig

config MTK _ STK8baxxbool ' MTK _ STK8baxxformediatekpackage ' defaultnhelpthestk 8ba 50 isahighlyintegrated, lowpowerinternalmeasurementunitthatprovidespreciseaccelerationmeasurement.thisconfigwillturnonaccelerometerfeature.3358 www

ccflags-y =-I$(srctree )/drivers/misc/mediatek/sensors-1.0/accelerometer/Inc cflags-y=-I $ (

_ kernel _ accelerometer=yes http://www.Sina.com /

[ 0.402790 ] dsy :---STK8baxx _ init 3463 start---[ 1.326177 ]3.---3 ([ 13360 swapper/0 ] dsy :---STK8baxx _ I2C _ probe 3158 client-addr=0x 18 start-- [ 1.327289 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3167 client-addr=0x 18 start-- [ 1.328381 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3179 client-addr=0x 18 start-- [ 1.329477 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3184 client-addr=0x 18 start-- [ 1.330584 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3196 client-addr=0x 18 start-- [ 1.331809 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3201 client-addr=0x 18 start---[ 1.333044 ]3. (3) [ 13360 swapppper ] dsy 33660 3.(3) [ 1: swapper/0 ] dsy :---STK8baxx _ I2C _ probe 3215 client-addr=0x 18 start no interrupt _ mode---- mode 3.(dsy :---STK8baxx _ I2C _ probe 3220 client-addr=0x 18 start---[ 1.336365 ]3. (3) [ 13360 swappper ] DDR 3.(3) [ 1: swapper/0 ] dsy :---- STK8baxx _ I2C _ probe 3226 client-addr=0x 18 start---[ 1. dsy :---STK8baxx _ I2C _ probe 3241 client-addr=0x 18 start-- [ 1.343672 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3263 client-addr=0x 18 start-- [ 1.344779 ]3. (3) [13360swapper] dsy :---STK8baxx _ I2C _ probe 3273 client-addr=0x 18 start-- [ 1.345878 ]3. (3) [13360swapper] boot prof :1345.877694: probe : probe=I2C _ device _ probe drv=STK8baxx (c0e 43 b 70 (19.69666616 ms 6523.837242 )3. t----[23.838215]3.(3) [ 454: NVRAM _ daemon ] dsy :---- STK _ factory _ set _ Cali 3071 start-----------453333333: dsy :---- STK _ write calibration 2966 start---- [ 23.840146 ]3. (3) [ 454: NVRAM _ daemon ] dsy :------------------------------ 3.(3) [ 454: NVRAM _ daemon ] dsy :---- STK _ read calibration 2951 start---[ 23.848021 ]3. (3) [ 454333333330 ] dsy :---- STK _ write calibration 2972 start---- [ 23.848984 ]3. (3) [ 454: NVRAM _ daemon ] dsy :------------ -。 dsy :---STK _ read _ Accel _ raw data 961 start---[ 51.779761 ]2. (2) [ 160: k worker/2:1 ] dsy 336661 2.(2) [ 160: k worker/2:1 ] dsy :---STK _ read _ Accel _ raw data 961 start-- [ 51.846374 ]2. (2) dsy :---STK _ low _ pass _ fir 882 start---[ 51.912318 ]2. (2) 1603360kworker/233601]dsy3301

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。