BL702/704/706 Reference Manual
affect the function. But as the input direction, IE must be set and the configuration of OE does not affect the function;
when used as swgpio, both IE and OE need to be configured correctly.
3.2.12 GPIO interrupt settings
To use the interrupt function of GPIO, you need to set GPIO to input mode first, and the interrupt trigger mode is set
through the GPIO_INT_MODE_SET register group. The interrupt modes that can be set include:
• Falling edge trigger interrupt
• Rising edge trigger interrupt
• Low level trigger interrupt
• High level trigger interrupt
Each GPIO can be set as an interrupt function. Whether to enable a GPIO interrupt can be set through the GPIO_-
INT_MASK register. When an interrupt is generated, the GPIO pin number that generated the interrupt can be ob-
tained through the GPIO_INT_STAT register in the interrupt function. Clear the corresponding interrupt signal through GPIO_-
INT_CLR.
3.3 Register description
Name
Description
clk_cfg0 Clock configuration-processor, bus
clk_cfg1 Clock configuration1-ble,qdec,i2s
clk_cfg2 Clock configuration-UART,Flash
clk_cfg3 Clock configuration-I2C,SPI
swrst_cfg0 software reset configuration0
swrst_cfg1 software reset configuration1
swrst_cfg2 software reset configuration2
cgen_cfg0 clock ungate configuration0
cgen_cfg1 clock ungate configuration1
bmx_cfg1 Bus configuration1
bmx_cfg2 Bus configuration2
bmx_err_addr Bus error address
seam_misc em select
CPU_CLK_CFG CPU clock configuration
GPADC_32M_SRC_CTRL Clock configuration-GPADC
BL702/704/706 Reference Manual 38/ 375
@2021 Bouffalo Lab