]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/commands/cmd_lin.c
Update library
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / commands / cmd_lin.c
index 602ad7569ee60eb906bfd232fe0c50483f0d01ad..ec8ad32f355508226f00025fb1b6be15a41c103f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "rpp/rpp.h"
 #include "sys/sys.h"
-#include "hal/hal.h"
+#include "drv/digital_io_def.h"
 
 /** Semaphore used to stop command, until message is received */
 extern xSemaphoreHandle linMsgReceived;
@@ -48,7 +48,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);
-       hal_gpio_pin_set_value(PIN_DSC_LIN1NSLP, 1);
+       rpp_gio_set_val(DIO_PIN_NAME_LIN1NSLP, 1);
        linIDReceived = xSemaphoreCreateCounting(1, 0);
        linMsgReceived = xSemaphoreCreateCounting(1, 0);
 
@@ -77,7 +77,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);
-       hal_gpio_pin_set_value(PIN_DSC_LIN1NSLP, 0);
+       rpp_gio_set_val(DIO_PIN_NAME_LIN1NSLP, 0);
        return 0;
 }