]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Update port command documentation
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Sep 2015 16:38:43 +0000 (18:38 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2015 08:30:59 +0000 (10:30 +0200)
rpp-test-sw/commands/cmd_port.c

index c8ed23df7880307fa7a8ab7653510fb6c6f4b135..d00048699ea615a327360a5c02c3645f56f48c03 100644 (file)
@@ -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"
        "\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"
        "\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"
        "     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
 };
 
        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"
        "\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
 };
 
        CMD_HANDLER(cmd_do_port_list), (void *)&cmd_list_port
 };