This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/examples/keyscan/keyscan_poll
2021-07-13 13:57:59 +08:00
..
CMakeLists.txt [feat][keyscan] add keyscan demo and hal driver 2021-07-12 17:28:53 +08:00
main.c [fix][keyscan] fix keyscan default clk setting and array index warning 2021-07-13 13:57:59 +08:00
readme.md [fix][keyscan] fix keyscan default clk setting and array index warning 2021-07-13 13:57:59 +08:00

board/bl706_iot/clock_config.h 中,

BSP_QDEC_KEYSCAN_CLOCK_SOURCE 设置成 ROOT_CLOCK_SOURCE_32K_CLK BSP_QDEC_KEYSCAN_CLOCK_DIV 设置成 0

board/bl706_iot/pinmux_config.h 中, 以下宏设置成 GPIO_FUN_KEY_SCAN_ROW

  • CONFIG_GPIO16_FUNC
  • CONFIG_GPIO17_FUNC
  • CONFIG_GPIO18_FUNC
  • CONFIG_GPIO19_FUNC

board/bl706_iot/pinmux_config.h 中, 以下宏设置成 GPIO_FUN_KEY_SCAN_COL

  • CONFIG_GPIO0_FUNC
  • CONFIG_GPIO1_FUNC
  • CONFIG_GPIO2_FUNC
  • CONFIG_GPIO3_FUNC

$ make APP=keyscan_poll BOARD=bl706_iot