]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/src/sys/notification.c
Get rid of "last line of file ends without a newline" warning
[pes-rpp/rpp-lib.git] / rpp / src / sys / notification.c
index 6eac67a38e96b7270d632646992e619829950e3f..c75694a82aaeee864440d3b4d64831d6a81d7a4c 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "sys/sys.h"
 #include "rpp/eth.h"
+#include "sys/ti_drv_can.h"
 
 void esmGroup1Notification(uint32_t channel)
 {
@@ -88,27 +89,6 @@ void hetNotification(hetBASE_t *het, uint32_t offset)
        while (1) ;
 }
 
-/** Semaphore used to stop command, until message is received */
-xSemaphoreHandle linMsgReceived;
-/** Semaphore used to stop command, until ID is received */
-xSemaphoreHandle linIDReceived;
-void linNotification(linBASE_t *lin, uint32_t flags)
-{
-       /* FIXME Moved code from somewhere else. It was in cmd_lin.c
-        * It seems that nobody in the library uses this.
-        * sys/ti_drv_lin.c calls this function from linLowLevelInterrupt()
-        * The function prototipe is in sys/ti_drv_lin.h, so maybe it should be
-        * better to move it there, but because it is a "high-level" notification
-        * it could be here.
-        */
-       if (flags & LIN_ID_INT)
-               xSemaphoreGiveFromISR(linIDReceived, NULL);
-       if (flags & LIN_RX_INT) {
-               lin->FLR |= (1 << 9);
-               xSemaphoreGiveFromISR(linMsgReceived, NULL);
-       }
-}
-
 #ifndef FREERTOS_POSIX
 extern boolean_t HostPendErrHandler(void);
 #if PHY_LINK_MONITOR_INT