]> rtime.felk.cvut.cz Git - rpp-test-sw.git/blobdiff - rpp-test-sw/commands/cmd_lin.c
Update to the reworked gio and port in the rpp-lib
[rpp-test-sw.git] / rpp-test-sw / commands / cmd_lin.c
index ec8ad32f355508226f00025fb1b6be15a41c103f..661b62e29239db862c98362d242566f68a1417bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012-2013 Czech Technical University in Prague
+ * Copyright (C) 2012-2013, 2015 Czech Technical University in Prague
  *
  * Created on: 28.2.2013
  *
@@ -25,7 +25,6 @@
 
 #include "rpp/rpp.h"
 #include "sys/sys.h"
-#include "drv/digital_io_def.h"
 
 /** Semaphore used to stop command, until message is received */
 extern xSemaphoreHandle linMsgReceived;
@@ -48,7 +47,7 @@ int cmd_do_lin_loop_back(cmd_io_t *cmd_io, const struct cmd_des *des, char *para
        uint8_t rxID = 0;
 
        linEnableLoopback(linREG, Digital);
-       rpp_gio_set_val(DIO_PIN_NAME_LIN1NSLP, 1);
+       rpp_gio_set(PIN_LIN1NSLP, 1);
        linIDReceived = xSemaphoreCreateCounting(1, 0);
        linMsgReceived = xSemaphoreCreateCounting(1, 0);
 
@@ -77,7 +76,7 @@ int cmd_do_lin_loop_back(cmd_io_t *cmd_io, const struct cmd_des *des, char *para
                rpp_sci_printf("FAILED: Sent and Received ID does not match.");
        vSemaphoreDelete(linIDReceived);
        vSemaphoreDelete(linMsgReceived);
-       rpp_gio_set_val(DIO_PIN_NAME_LIN1NSLP, 0);
+       rpp_gio_set(PIN_LIN1NSLP, 0);
        return 0;
 }