Root/package/ifx-tapidemo/patches/100-ifxmips.patch

1--- a/src/board_easy50712.c Mon Mar 15 14:47:53 2010 +0300
2+++ b/src/board_easy50712.c Tue Mar 16 17:25:55 2010 +0300
3@@ -40,7 +40,9 @@
4    #endif /* DUSLIC_FXO */
5 #endif /* EASY50712_V3 */
6 
7-#include "asm/ifx/ifx_gpio.h"
8+#ifdef FXO
9+# include "asm/ifx/ifx_gpio.h"
10+#endif
11 
12 /* ============================= */
13 /* Defines */
14@@ -896,6 +898,7 @@
15 /* Global function definition */
16 /* ============================= */
17 
18+#ifdef FXO
19 /**
20    Set direction of GPIO pin to out which is used for set/clear reset.
21 
22@@ -944,7 +947,7 @@
23          return IFX_SUCCESS;
24       }
25       break;
26-
27+
28       case GPIO_DUSLIC_EASY50510:
29       {
30          TRACE(TAPIDEMO, DBG_LEVEL_LOW,
31@@ -982,8 +985,9 @@
32 
33    return IFX_SUCCESS;
34 };
35+#endif
36 
37-
38+#ifdef FXO
39 /*
40    Set/Clear reset of device by using GPIO port.
41 
42@@ -1086,7 +1090,9 @@
43    /* usleep(100000); karol - workaround, */
44    return ret;
45 }
46+#endif
47 
48+#ifdef EASY50510
49 /**
50    Set PCM master mode.
51 
52@@ -1178,15 +1184,16 @@
53 
54    return ret;
55 }
56+#endif
57 
58 /**
59    Register board.
60 
61    \param pBoard - pointer to board
62-
63+
64    \return IFX_SUCCESS if successful, otherwise IFX_ERROR.
65 
66- \remarks
67+ \remarks
68 */
69 IFX_return_t BOARD_Easy50712_Register(BOARD_t* pBoard)
70 {
71@@ -1204,7 +1211,3 @@
72    pBoard->RemoveBoard = BOARD_Easy50712_RemoveBoard;
73    return IFX_SUCCESS;
74 }
75-
76-
77-
78-
79

Archive Download this file



interactive