[docs][keyscan] fix keyscan clock source comment
This commit is contained in:
parent
6531fecf2c
commit
c804bf18e8
@ -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);
|
||||
|
@ -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**
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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**
|
||||
|
||||
|
Reference in New Issue
Block a user