]> rtime.felk.cvut.cz Git - rpp-test-sw.git/blobdiff - rpp-test-sw/commands/_tms570_rpp/cmd_port.c
Merge branches 'master' and 'rm48/master'
[rpp-test-sw.git] / rpp-test-sw / commands / _tms570_rpp / cmd_port.c
index bfb869d5f83f0f54c78e125a325bb11f080680e0..e25ec028997735441e3df1f66bbf2e6c6f64e5c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012-2013 Czech Technical University in Prague
+ * Copyright (C) 2012-2015 Czech Technical University in Prague
  *
  * Created on: 28.2.2013
  *
@@ -116,7 +116,7 @@ int cmd_do_port_val(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[])
                                rpp_sci_printf("%d\r\n", values[i]);
                        }
                }
-               rpp_sci_printf("portval%s=%x", portName, ret);
+               rpp_sci_printf("portval%s=%x\n", portName, ret);
                return 0;
        }
 }
@@ -157,14 +157,11 @@ cmd_des_t const cmd_des_port_val = {
        "Port names and interface type can be obtained with the portlist\n"
        "command.\n"
        "\n"
-       "NOTE: For successful communication with the HBR, HBR_EN pin must\n"
-       "be set first.\n"
-       "\n"
        "### Example ###\n"
        "\n"
-       "     --> portvalMOUTIN 3A\n"
-       "     portvalMOUTIN=0\n"
-       "     --> portvalMOUTIN\n"
+       "     --> portvalGIOB 3A\n"
+       "     portvalGIOB=0\n"
+       "     --> portvalGIOB\n"
        "     0\n"
        "     1\n"
        "     0\n"
@@ -172,13 +169,13 @@ cmd_des_t const cmd_des_port_val = {
        "     1\n"
        "     1\n"
        "\n"
-       "This pair of commands sets:\nMOUT1IN"
-       "MOUT1IN=0\n"
-       "MOUT2IN=1\n"
-       "MOUT3IN=0\n"
-       "MOUT4IN=1\n"
-       "MOUT5IN=1\n"
-       "MOUT6IN=1\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",
        CMD_HANDLER(cmd_do_port_val), (void *)&cmd_list_port
 };
@@ -203,21 +200,10 @@ 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"
-       "     DINMCU, GPIO\n"
-       "     DINSPI, SPI\n"
-       "     HOUTDIAG, GPIO\n"
-       "     HOUTIN, GPIO\n"
-       "     HOUTIFBK, ADC\n"
-       "     ADC, ADC\n"
-       "     LOUT, SPI\n"
-       "     DAC12, SPI\n"
-       "     DAC34, SPI\n"
-       "     DACDREF, SPI\n"
-       "     HBR, SPI\n"
-       "     FRAY1, SPI\n"
-       "     FRAY2, SPI\n"
-       "     MOUTEN, GPIO\n"
-       "     MOUTIN, GPIO\n",
+       "     GIOA, GPIO\n"
+       "     GIOB, GPIO\n"
+       "     NHET1, GPIO\n"
+       "     ADC, ADC\n",
        CMD_HANDLER(cmd_do_port_list), (void *)&cmd_list_port
 };