Files
ai-passport/docs/hardware-design
T
Shinku 32de0ce795 fix(bsp): set button press timing explicitly (180 ms / 500 ms)
- 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
..

简体中文 · English

Hardware Design

This directory contains product specifications, firmware-visible board facts, resource constraints, acceptance matrices, and troubleshooting knowledge.

  • components/bsp/include/bsp_pins.h is the source of truth for firmware pin assignments and board constants.
  • Product specifications are maintained in specifications.md; firmware behavior and constraints are maintained in the hardware guide.
  • Do not infer board interfaces from generic ESP32-C3 capabilities or another development board.
  • Pin, I2C, ADC, display, audio-clock, or other hardware mapping changes must update the relevant document and record the physical-device result.

Document map

Document Audience and authority
AI_HARDWARE_DEVELOPMENT_GUIDE.md Engineering reference for BSP behavior, resource ownership, constraints, validation, and troubleshooting.
specifications.md Public product specifications.
components/bsp/include/bsp_pins.h Firmware source of truth for pin assignments, bus instances, addresses, panel parameters, and button windows.

New documents must state their scope, link software interfaces instead of duplicating constants, and keep build results separate from physical-device results.