This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm3730 控制gpio的输入输出



我编写了一个驱动,直接调用了gpio_request(110,DEVICE_NAME);和ogpio_direction_output(110,1);加载驱动后,运行时ok的,但是为什么gpio_110端口的输出值依然为0。我看了网上有说需要使用map_mux_init_gpio();这个函数,请问这个函数在哪里有定义,如何调用

  • 经常管脚会有复用,需要先进行pinmux设置,而不同版本的内核,pinmux的设置略微有些差异的,一般来说相应的设备init文件里(比如kernel/arch/arm/mach-*/board-*3730*.c)会有pinmux设置,可以按照相同的方式进行设置