button: add basic button functionalities

- Provided a way to set handler for each button one-press/long-press
- Debouncing with RC filter and Schmitt trigger
This commit is contained in:
Dien-Nhung Nguyen-Phu
2024-06-02 18:27:36 +07:00
parent f6d84a1ead
commit 799d8e43b5
4 changed files with 173 additions and 16 deletions

View File

@@ -50,7 +50,8 @@ CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_usb2hostBase.c \
CH5xx_ble_firmware_library/StdPeriphDriver/CH58x_spi1.c \
CH5xx_ble_firmware_library/RVMSIS/core_riscv.c \
src/main.c \
src/leddrv.c
src/leddrv.c \
src/button.c
# ASM sources