Be more deterministic in handling of the debug command - revised. Refactor set/reset/show debug state to a separate function, use bitmasks to determine what needs to be done or displayed.
Be more deterministic in handling of the debug command - revised.
Refactor set/reset/show debug state to a separate function, use bitmasks to determine what needs to be done or displayed.

cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware