TB2026-YDS Firmware
Loading...
Searching...
No Matches
input_logic.c File Reference

Pure debounce + press-edge detection + button->ui_event mapping (no hardware). More...

#include "input_logic.h"
#include "board_pins.h"

Macros

#define BTN_A_NOT_ON_EXPANDER   0xFF

Functions

int input_logic_update (input_debounce_t *st, uint8_t exp_port, bool a_pressed, uint32_t now_ms, ui_event_t *out, int out_cap)
 Fold one button sample into the debounce state, emitting just-pressed UI events.

Detailed Description

Pure debounce + press-edge detection + button->ui_event mapping (no hardware).

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Macro Definition Documentation

◆ BTN_A_NOT_ON_EXPANDER

#define BTN_A_NOT_ON_EXPANDER   0xFF

Variable Documentation

◆ ev

◆ exp_bit

uint8_t exp_bit