]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/src/sys/notification.c
Remove excessive rpp library files from the RM48 project
[pes-rpp/rpp-lib.git] / rpp / src / sys / notification.c
1 /** @file notification.c
2  *   @brief User Notification Definition File
3  *   @date 15.Mar.2012
4  *   @version 03.01.00
5  *
6  *   This file  defines  empty  notification  routines.
7  *   The user needs to remove the while loop and define
8  *   the sequence.
9  *
10  */
11
12 /* Include Files */
13
14 #include "sys/sys.h"
15
16 void esmGroup1Notification(uint32_t channel)
17 {
18 /*  enter user code and remove the while loop... */
19         while (1) ;
20 }
21
22 void esmGroup2Notification(uint32_t channel)
23 {
24 /*  enter user code and remove the while loop... */
25         while (1) ;
26 }
27
28 void memoryPort0TestFailNotification(uint32_t groupSelect, uint32_t dataSelect, uint32_t address, uint32_t data)
29 {
30 /*  enter user code and remove the while loop... */
31         while (1) ;
32 }
33
34 void memoryPort1TestFailNotification(uint32_t groupSelect, uint32_t dataSelect, uint32_t address, uint32_t data)
35 {
36 /*  enter user code and remove the while loop... */
37         while (1) ;
38 }
39 /** @brief Semaphore blocking task when it waits for interrupt signaling message receive
40  *
41  */
42 void canErrorNotification(canBASE_t *node, uint32_t notification)
43 {}
44
45 void canMessageNotification(canBASE_t *node, uint32_t messageBox)
46 {}
47
48 void gioNotification(int bit)
49 {
50 /*  enter user code and remove the while loop... */
51         while (1) ;
52 }
53
54 void i2cNotification(i2cBASE_t *i2c, uint32_t flags)
55 {
56 /*  enter user code and remove the while loop... */
57         while (1) ;
58 }
59
60 void mibspiNotification(mibspiBASE_t *mibspi, uint32_t flags)
61 {
62 /*  enter user code and remove the while loop... */
63         while (1) ;
64 }
65
66 void mibspiGroupNotification(mibspiBASE_t *mibspi, uint32_t group)
67 {
68 /*  enter user code and remove the while loop... */
69         while (1) ;
70 }
71
72 void pwmNotification(hetBASE_t *hetREG,uint32_t pwm, uint32_t notification)
73 {
74 /*  enter user code and remove the while loop... */
75         while (1) ;
76 }
77
78 void edgeNotification(hetBASE_t *hetREG,uint32_t edge)
79 {
80 /*  enter user code and remove the while loop... */
81         while (1) ;
82 }
83
84 void hetNotification(hetBASE_t *het, uint32_t offset)
85 {
86 /*  enter user code and remove the while loop... */
87         while (1) ;
88 }
89
90 /** Semaphore used to stop command, until message is received */
91 xSemaphoreHandle linMsgReceived;
92 /** Semaphore used to stop command, until ID is received */
93 xSemaphoreHandle linIDReceived;
94 void linNotification(linBASE_t *lin, uint32_t flags)
95 {
96         /* FIXME Moved code from somewhere else. It was in cmd_lin.c
97          * It seems that nobody in the library uses this.
98          * sys/ti_drv_lin.c calls this function from linLowLevelInterrupt()
99          * The function prototipe is in sys/ti_drv_lin.h, so maybe it should be
100          * better to move it there, but because it is a "high-level" notification
101          * it could be here.
102          */
103         if (flags & LIN_ID_INT)
104                 xSemaphoreGiveFromISR(linIDReceived, NULL);
105         if (flags & LIN_RX_INT) {
106                 lin->FLR |= (1 << 9);
107                 xSemaphoreGiveFromISR(linMsgReceived, NULL);
108         }
109 }