Skip to contentSkip to conversation

cmd: add conitrace command

PATCH New Heinrich Schuchardt 2 participants 2 messages Sep 7, 2018 – Sep 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: add conitrace command

The 'conitrace' command prints the codes received from the console input as hexadecimal numbers.

This developer utility is useful for testing the handling of special keys by keyboard drivers.

---
 cmd/Kconfig     |  6 ++++++
 cmd/Makefile    |  1 +
 cmd/conitrace.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 cmd/conitrace.c
cmd/Kconfig +6 -0
index 13d4c991bf..cf97a0f2be 100644
@@ -1338,6 +1338,12 @@ config CMD_CACHE
 	help
 	  Enable the "icache" and "dcache" commands
 
+config CMD_CONITRACE
+	bool "conitrace - trace console input codes"
+	help
+	  Enable the 'conitrace' command which displays the codes received
+	  from the console input as hexadecimal numbers.
+
 config CMD_DISPLAY
 	bool "Enable the 'display' command, for character displays"
 	help
cmd/Makefile +1 -0
index 3487c80455..88045dea97 100644
@@ -34,6 +34,7 @@ obj-$(CONFIG_CMD_CACHE) += cache.o
 obj-$(CONFIG_CMD_CBFS) += cbfs.o
 obj-$(CONFIG_CMD_CLK) += clk.o
 obj-$(CONFIG_CMD_CONFIG) += config.o
+obj-$(CONFIG_CMD_CONITRACE) += conitrace.o
 obj-$(CONFIG_CMD_CONSOLE) += console.o
 obj-$(CONFIG_CMD_CPU) += cpu.o
 obj-$(CONFIG_DATAFLASH_MMC_SELECT) += dataflash_mmc_mux.o
cmd/conitrace.c new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 cmd: add conitrace command

Quoted 7 lines · Heinrich Schuchardt

The 'conitrace' command prints the codes received from the console input as hexadecimal numbers.

This developer utility is useful for testing the handling of special keys by keyboard drivers.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180926/e9083096/attachment.sig>