]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - source/notification.c
LIN loop back rewrited to enable U602 driver and to check external loopback
[pes-rpp/rpp-test-sw.git] / source / notification.c
index aa0035ada84842088cc62e617f8dbf5bc4cc46aa..5f23ae74fea48b7e3109bdcbc4bba97aa4e81dd6 100644 (file)
@@ -111,6 +111,7 @@ void adcNotification(adcBASE_t *adc, uint32_t group)
                adc->GxFIFORESETCR[1] = 1;\r
        }\r
        /* USER CODE END */\r
+\r
 }\r
 \r
 /* USER CODE BEGIN (12) */\r
@@ -149,6 +150,7 @@ void canMessageNotification(canBASE_t *node, uint32_t messageBox)
        }\r
 \r
 /* USER CODE END */\r
+\r
 }\r
 \r
 /* USER CODE BEGIN (16) */\r
@@ -166,13 +168,12 @@ void gioNotification(int bit)
 /* USER CODE END */\r
 void linNotification(linBASE_t *lin, uint32_t flags)      \r
 {\r
-/*  enter user code and remove the while loop... */\r
-    while(1);\r
 /* USER CODE BEGIN (23) */\r
                if (flags & LIN_ID_INT) {\r
                        xSemaphoreGiveFromISR(linIDReceived, NULL);\r
                }\r
                if (flags & LIN_RX_INT) {\r
+                       lin->FLR |= (1 << 9);\r
                        xSemaphoreGiveFromISR(linMsgReceived, NULL);\r
                }\r
 /* USER CODE END */\r
@@ -213,6 +214,7 @@ void sciNotification(sciBASE_t *sci, uint32_t flags)
                }\r
        }\r
 /* USER CODE END */\r
+\r
 }\r
 \r
 /* USER CODE BEGIN (30) */\r