Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | /*! \file sramsw.h \brief Software-driven SRAM memory bus access functions. */ |
2 | //***************************************************************************** |
||
3 | // |
||
4 | // File Name : 'sramsw.h' |
||
5 | // Title : Software-driven SRAM memory bus access functions |
||
6 | // Author : Pascal Stang - Copyright (C) 2002 |
||
7 | // Created : 11/11/2002 |
||
8 | // Revised : 11/13/2002 |
||
9 | // Version : 1.0 |
||
10 | // Target MCU : Atmel AVR series |
||
11 | // Editor Tabs : 4 |
||
12 | // |
||
13 | // This code is distributed under the GNU Public License |
||
14 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
15 | // |
||
16 | //***************************************************************************** |
||
17 | |||
18 | #ifndef SRAMSW_H |
||
19 | #define SRAMSW_H |
||
20 | |||
21 | #include "global.h" |
||
22 | // include project-dependent configurations |
||
23 | // sramswconf.h allows the user to choose which ports |
||
24 | // and pins are used in the memory bus |
||
25 | #include "sramswconf.h" |
||
26 | |||
27 | // function prototypes |
||
28 | |||
29 | //! Initialize the memory bus |
||
30 | void sramswInit(void); |
||
31 | //! Write data using the memory bus |
||
32 | void sramswWrite(u32 addr, u08 data); |
||
33 | //! Read data using the memory bus |
||
34 | u08 sramswRead(u32 addr); |
||
35 | //! Set memory page |
||
36 | void sramswSetPage(u08 page); |
||
37 | |||
38 | #endif |
Powered by WebSVN v2.8.3