LRADC0是什么管脚,这个好像只能够作为ad数值的输入,这下子普通的
按键中断测试好像不怎么行得通。
255|shell@astar-y3:/system/vendor/modules # insmod a33_button.ko
[ 62.227604] the lcd is on work
[ 62.231119] the major is on job
[ 62.236983] the valid value is 1
[ 62.240674] the irq value is 1
[ 62.244087] the value of error is 0
shell@astar-y3:/system/vendor/modules # insmod a33_button.ko
insmod: init_module 'a33_button.ko' failed (File exists)
255|shell@astar-y3:/system/vendor/modules # rmmod a33_button
[ 71.126937] the dev is unregister
[ 71.130677] the lcd is off work
shell@astar-y3:/system/vendor/modules #
我报管脚改成了GPIOG(11)的,不知道是不是没有设置上拉或者输出的其他缘故,好像灯还是不亮
在模块加载的时候,管脚置为1,在模块移除的时候,管脚置为0.