From 5a4abb720862c09a2d7245b33728057fae91080b Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 2 Sep 2015 18:38:43 +0200 Subject: [PATCH] Update port command documentation --- rpp-test-sw/commands/cmd_port.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/rpp-test-sw/commands/cmd_port.c b/rpp-test-sw/commands/cmd_port.c index c8ed23d..d000486 100644 --- a/rpp-test-sw/commands/cmd_port.c +++ b/rpp-test-sw/commands/cmd_port.c @@ -236,9 +236,8 @@ cmd_des_t const cmd_des_port_val = { "\n" "The get variant returns the value read from the port.\n" "\n" - "If the port represents an SPI interface of the MCU, then it is write\n" - "only and the argument is interpreted as a command for the port\n" - "controller.\n" + "If the port represents an SPI device, then it is write only and the\n" + "argument is interpreted as a message sent to the device.\n" "\n" "If the port is represents the ADC interface of the MCU, it is read\n" "only and returns values for each ADC pin.\n" @@ -252,14 +251,8 @@ cmd_des_t const cmd_des_port_val = { " portvalGIOB=0x3a\n" " --> portvalGIOB\n" " portvalGIOB=0x3a\n" - "This pair of commands sets:\nGIOB" - "GIOB=0\n" - "GIOB=1\n" - "GIOB=0\n" - "GIOB=1\n" - "GIOB=1\n" - "GIOB=1\n" - "Which is shown in getter output\n", + " --> portvalADCCND 0x4100 0x4100 0x4100 0x4100 0x4100 0x4100\n" + " 0xffff 0xffff 0xffff 0xffff 0xffff 0xffff\n", CMD_HANDLER(cmd_do_port_val), (void *)&cmd_list_port }; @@ -281,10 +274,16 @@ cmd_des_t const cmd_des_port_list = { "\n" " --> portlist\n" " List of all defined ports with its type. Those names can be used by portval command.\n" - " GIOA RW 8x1b\n" - " GIOB RW 8x1b\n" - " NHET RW 30x1b\n" - " ADC RO 16x12b\n", + " GIOA RW 8x1b\n" + " GIOB RW 8x1b\n" + " NHET1 RW 30x1b\n" + " ADC RO 24x16b\n" + " THERM1 WO 1x16b (SPI, MCP6S93)\n" + " THERM2 WO 1x16b (SPI, MCP6S93)\n" + " ADCCND WO 6x16b (SPI, MCP6S93)\n" + " PWR WO 1x16b (SPI, TPS65381)\n" + " SENSUP WO 1x16b (SPI, MCP6S93)\n" + " DACLBK WO 1x16b (SPI, MCP6S93)\n", CMD_HANDLER(cmd_do_port_list), (void *)&cmd_list_port }; -- 2.39.2