Home > other >  QCA4531 GPIO operation question
QCA4531 GPIO operation question

Time:10-01

First make qualcomm chip, I want to set GPIO11 to output, I already set GPIO_OE registers, but how to set up the FUNCTION3 register? Really didn't see,

CodePudding user response:

You can refer to the blog:http://blog.csdn.net/Joymine/article/details/48161895

CodePudding user response:

//add by buqing. Wang start
# define GPIO_FLASH_NOW_ID 31//flash gpio id
# define GPIO_FLASH_COUNT 10//cycle
# define HWREG_OUT (address, the value (*) ((volatile uint32_t *) (address))=(value))//Write to the hardware register
# define HWREG_IN (address) (* ((volatile uint32_t *) (address)))//Read from the hardware register
//add by buwing. Wang end

CodePudding user response:

You can refer to the following link, inside speak very clear:
https://blog.csdn.net/ldinvicible/article/details/52421640? Depth_1 - utm_source=distribute. Pc_relevant. None - task& Utm_source=distribute. Pc_relevant. None - a task
  • Related