- bsp_pins.h gains BSP_BTN_SHORT_PRESS_MS (180) and BSP_BTN_LONG_PRESS_MS (500);
bsp_button.c passes both to button_config_t instead of { 0 }, so the press
timing no longer depends on the button component's Kconfig defaults.
- User-visible change: LONG now triggers at 500 ms instead of 1500 ms, which is
what the demo's OK-long-press-returns interaction uses. The component's
BUTTON_LONG_PRESS_TIME_MS Kconfig lower bound is also 500 ms, so a shorter long
press can only be passed in code.
- The init log reports both thresholds, and tests/test_bsp_button.c asserts the
values handed to iot_button_create().
- docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.{md,zh_CN.md} document the
explicit timings and why they are pinned.
32de0ce795
·
2026-09-21 22:26:43 +08:00
History