@@ -0,0 +1,35 | |||||
|
1 | #ifndef APB_CNA_DRIVER_H | |||
|
2 | #define APB_CNA_DRIVER_H | |||
|
3 | ||||
|
4 | #define DAC_ready 3 | |||
|
5 | #define DAC_enable 1 | |||
|
6 | #define DAC_disable 0 | |||
|
7 | ||||
|
8 | ||||
|
9 | /*=================================================== | |||
|
10 | T Y P E S D E F | |||
|
11 | ====================================================*/ | |||
|
12 | ||||
|
13 | struct DAC_Driver | |||
|
14 | { | |||
|
15 | int configReg; | |||
|
16 | int dataReg; | |||
|
17 | }; | |||
|
18 | ||||
|
19 | typedef struct DAC_Driver DAC_Device; | |||
|
20 | ||||
|
21 | /*=================================================== | |||
|
22 | F U N C T I O N S | |||
|
23 | ====================================================*/ | |||
|
24 | ||||
|
25 | DAC_Device* DacOpen(int count); | |||
|
26 | ||||
|
27 | //DAC_Device* DacClose(int count); | |||
|
28 | ||||
|
29 | int DacTable(); | |||
|
30 | ||||
|
31 | int DacConst(); | |||
|
32 | ||||
|
33 | ||||
|
34 | ||||
|
35 | #endif |
@@ -22,5 +22,6 syntax: glob | |||||
22 | *vhdlsyn.txt |
|
22 | *vhdlsyn.txt | |
23 | *.orig |
|
23 | *.orig | |
24 | *.o |
|
24 | *.o | |
|
25 | *.a | |||
25 | *~ |
|
26 | *~ | |
26 |
|
27 |
@@ -14,7 +14,7 | |||||
14 | -- |
|
14 | -- | |
15 | -- You should have received a copy of the GNU General Public License |
|
15 | -- You should have received a copy of the GNU General Public License | |
16 | -- along with this program; if not, write to the Free Software |
|
16 | -- along with this program; if not, write to the Free Software | |
17 |
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | -------------------------------------------------------------------------------*/ |
|
18 | -------------------------------------------------------------------------------*/ | |
19 | #ifndef LPP_APB_FUNCTIONS_H |
|
19 | #ifndef LPP_APB_FUNCTIONS_H | |
20 | #define LPP_APB_FUNCTIONS_H |
|
20 | #define LPP_APB_FUNCTIONS_H | |
@@ -30,6 +30,8 | |||||
30 | #define LPP_SIMPLE_DIODE 0x003 |
|
30 | #define LPP_SIMPLE_DIODE 0x003 | |
31 | #define LPP_MULTI_DIODE 0x004 |
|
31 | #define LPP_MULTI_DIODE 0x004 | |
32 | #define LPP_LCD_CTRLR 0x005 |
|
32 | #define LPP_LCD_CTRLR 0x005 | |
|
33 | #define LPP_UART_CTRLR 0x006 | |||
|
34 | #define LPP_DAC_CTRLR 0x007 | |||
33 |
|
35 | |||
34 | /** @todo implemente a descriptor structure for any APB device */ |
|
36 | /** @todo implemente a descriptor structure for any APB device */ | |
35 |
|
37 |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed, binary diff hidden |
|
NO CONTENT: file was removed, binary diff hidden |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now