Embedded Firmware · Hard · C

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

Constraints

Concepts to review

C, UART, command parser

Open HDLForge to solve this problem in the interactive editor.

Related problems