[docs][keyscan] fix keyscan clock source comment

This commit is contained in:
jzlv 2021-07-16 16:25:30 +08:00
parent 6531fecf2c
commit c804bf18e8
4 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ int main(void)
if (keyscan) {
KEYSCAN_DEV(keyscan)->col_num = COL_NUM_4;
KEYSCAN_DEV(keyscan)->row_num = ROW_NUM_4;
device_open(keyscan, 0); //current scan latency is 32K/1/8 = 4Khz
device_open(keyscan, 0); //current keyscan clock source:one is 32M/(31+1)/8 = 125Khz and another is 1MHZ
device_set_callback(keyscan, keyscan_irq_callback);
device_control(keyscan, DEVICE_CTRL_SET_INT, NULL);
device_control(keyscan, DEVICE_CTRL_RESUME, NULL);

View File

@ -1,7 +1,7 @@
**board/bl706_iot/clock_config.h** 中,
**BSP_QDEC_KEYSCAN_CLOCK_SOURCE** 设置成 **ROOT_CLOCK_SOURCE_32K_CLK**
**BSP_QDEC_KEYSCAN_CLOCK_DIV** 设置成 **0**
**BSP_QDEC_KEYSCAN_CLOCK_SOURCE** 设置成 **ROOT_CLOCK_SOURCE_XCLK**
**BSP_QDEC_KEYSCAN_CLOCK_DIV** 设置成 **31**
**board/bl706_iot/pinmux_config.h** 中, 以下宏设置成 **GPIO_FUN_KEY_SCAN_ROW**

View File

@ -33,7 +33,7 @@ int main(void)
if (keyscan) {
KEYSCAN_DEV(keyscan)->col_num = COL_NUM_4;
KEYSCAN_DEV(keyscan)->row_num = ROW_NUM_4;
device_open(keyscan, 0); //current scan latency is 32K/1/8 = 4Khz
device_open(keyscan, 0); //current keyscan clock source:one is 32M/(31+1)/8 = 125Khz and another is 1MHZ
device_control(keyscan, DEVICE_CTRL_RESUME, NULL);
MSG("keyscan found\n");
}

View File

@ -1,7 +1,7 @@
**board/bl706_iot/clock_config.h** 中,
**BSP_QDEC_KEYSCAN_CLOCK_SOURCE** 设置成 **ROOT_CLOCK_SOURCE_32K_CLK**
**BSP_QDEC_KEYSCAN_CLOCK_DIV** 设置成 **0**
**BSP_QDEC_KEYSCAN_CLOCK_SOURCE** 设置成 **ROOT_CLOCK_SOURCE_XCLK**
**BSP_QDEC_KEYSCAN_CLOCK_DIV** 设置成 **31**
**board/bl706_iot/pinmux_config.h** 中, 以下宏设置成 **GPIO_FUN_KEY_SCAN_ROW**