aboutsummaryrefslogtreecommitdiff
path: root/usb-control/command_processor.py
AgeCommit message (Collapse)Author
2023-08-04usb-control: fix flake8 E712 comparison to True should be 'if cond is True:' ↵Quentin Schulz
or 'if cond:' Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-08-04usb-control: command_processor.py: import missing moduleQuentin Schulz
time.sleep is used but the time module was never imported, so let's fix that. Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-08-04usb-control: fix flake8 E703 statement ends with a semicolonQuentin Schulz
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-08-04usb-control: fix flake8 E128 continuation line under-indented for visual indentQuentin Schulz
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-08-04usb-control: fix flake8 W391 blank line at end of fileQuentin Schulz
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-08-04usb-control: fix flake8 302 expected 2 blank lines, found 1Quentin Schulz
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-08-04usb-control: typo fix in usageKlaus Goger
Minor change of a typo noticed during usage Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2023-08-04usb-control: print usage if called without argumentKlaus Goger
We should really use argparse, but for now improve the usability by printing the usage help when there is no command provided. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2023-08-04usb-control: use board instead of baseboardKlaus Goger
As we are now also support a SBC (Jaguar) the use of the term baseboard is wrong. Instead be more generic with just board. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
2021-11-23usb-control: switch to python3Quentin Schulz
Long overdue migration to python3. This was done with 2to3 and barely tested. Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2019-10-07Add support for cp2102 simple control cicuits.Christoph Muellner
This patch factors out the low-level routines to control a CP2102 to cp210x_controller.py. command_processor.py provides a framework for defining commands and to specify options. It represents the board independet boilerplate code. cp2102_haikou.py contains the commands to control a Haikou-like circuit. cp2102_simple.py contains the commands to control a simple control circuit. The board files cp2102-mini-evk.py, haikou.py, and telaviv.py are the front-ends to control the specified boards. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>