Minimal UART Command Shell
Dispatch simple one-character commands received from a UART console.
Task
Implement handle_command(c): '1' writes GPIO=1, '0' writes GPIO=0, 't' transmits 'T', otherwise transmit '?'.
Examples
- Implement the required behavior and preserve it under the stated interface/control conditions.
Constraints
- Keep the implementation deterministic and consistent with the interface contract described in the task.
Concepts to review
C, UART, command parser
Open HDLForge to solve this problem in the interactive editor.
Related problems
- UART Baud Tick Generator — Easy
- UART TX Frame Shifter — Easy
- UART Transmit Controller — Medium
- UART RX Start-Bit Detector — Easy
- UART RX Data Shifter — Medium