Line No. | Rev | Author | Line |
---|---|---|---|
1 | 32 | kaklik | /********************************************************************* |
2 | * |
||
3 | * External serial data EEPROM Access Defs. |
||
4 | * |
||
5 | ********************************************************************* |
||
6 | * FileName: XEEPROM.h |
||
7 | * Dependencies: None |
||
8 | * Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32 |
||
9 | * Compiler: Microchip C32 v1.05 or higher |
||
10 | * Microchip C30 v3.12 or higher |
||
11 | * Microchip C18 v3.30 or higher |
||
12 | * HI-TECH PICC-18 PRO 9.63PL2 or higher |
||
13 | * Company: Microchip Technology, Inc. |
||
14 | * |
||
15 | * Software License Agreement |
||
16 | * |
||
17 | * Copyright (C) 2002-2009 Microchip Technology Inc. All rights |
||
18 | * reserved. |
||
19 | * |
||
20 | * Microchip licenses to you the right to use, modify, copy, and |
||
21 | * distribute: |
||
22 | * (i) the Software when embedded on a Microchip microcontroller or |
||
23 | * digital signal controller product ("Device") which is |
||
24 | * integrated into Licensee's product; or |
||
25 | * (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h, |
||
26 | * ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device |
||
27 | * used in conjunction with a Microchip ethernet controller for |
||
28 | * the sole purpose of interfacing with the ethernet controller. |
||
29 | * |
||
30 | * You should refer to the license agreement accompanying this |
||
31 | * Software for additional information regarding your rights and |
||
32 | * obligations. |
||
33 | * |
||
34 | * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT |
||
35 | * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT |
||
36 | * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
||
37 | * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
||
38 | * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR |
||
39 | * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF |
||
40 | * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS |
||
41 | * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE |
||
42 | * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER |
||
43 | * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT |
||
44 | * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. |
||
45 | * |
||
46 | * |
||
47 | * Author Date Comment |
||
48 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
49 | * Nilesh Rajbharti 5/20/02 Original (Rev. 1.0) |
||
50 | ********************************************************************/ |
||
51 | #ifndef __XEEPROM_H |
||
52 | #define __XEEPROM_H |
||
53 | |||
54 | #include "HardwareProfile.h" |
||
55 | |||
56 | typedef BOOL XEE_RESULT; |
||
57 | #define XEE_SUCCESS FALSE |
||
58 | |||
59 | #if defined(EEPROM_CS_TRIS) |
||
60 | void XEEInit(void); |
||
61 | XEE_RESULT XEEBeginWrite(DWORD address); |
||
62 | XEE_RESULT XEEWrite(BYTE val); |
||
63 | void XEEWriteArray(BYTE *val, WORD wLen); |
||
64 | XEE_RESULT XEEEndWrite(void); |
||
65 | XEE_RESULT XEEBeginRead(DWORD address); |
||
66 | BYTE XEERead(void); |
||
67 | XEE_RESULT XEEReadArray(DWORD address, BYTE *buffer, WORD length); |
||
68 | XEE_RESULT XEEEndRead(void); |
||
69 | BOOL XEEIsBusy(void); |
||
70 | #else |
||
71 | // If you get any of these linker errors, it means that you either have an |
||
72 | // error in your HardwareProfile.h or TCPIPConfig.h definitions. The code |
||
73 | // is attempting to call a function that can't possibly work because you |
||
74 | // have not specified what pins and SPI module the physical SPI EEPROM chip |
||
75 | // is connected to. Alternatively, if you don't have an SPI EERPOM chip, it |
||
76 | // means you have enabled a stack feature that requires SPI EEPROM hardware. |
||
77 | // In this case, you need to edit TCPIPConfig.h and disable this stack |
||
78 | // feature. The linker error tells you which object file this error was |
||
79 | // generated from. It should be a clue as to what feature you need to |
||
80 | // disable. |
||
81 | void You_cannot_call_the_XEEInit_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
82 | XEE_RESULT You_cannot_call_the_XEEBeginWrite_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
83 | XEE_RESULT You_cannot_call_the_XEEWrite_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
84 | void You_cannot_call_the_XEEWriteArray_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
85 | XEE_RESULT You_cannot_call_the_XEEEndWrite_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
86 | XEE_RESULT You_cannot_call_the_XEEBeginRead_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
87 | BYTE You_cannot_call_the_XEERead_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
88 | XEE_RESULT You_cannot_call_the_XEEReadArray_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
89 | XEE_RESULT You_cannot_call_the_XEEEndRead_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
90 | BOOL You_cannot_call_the_XEEIsBusy_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first(void); |
||
91 | #define XEEInit() You_cannot_call_the_XEEInit_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
92 | #define XEEBeginWrite(a) You_cannot_call_the_XEEBeginWrite_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
93 | #define XEEWrite(a) You_cannot_call_the_XEEWrite_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
94 | #define XEEWriteArray(a,b) You_cannot_call_the_XEEWriteArray_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
95 | #define XEEEndWrite() You_cannot_call_the_XEEEndWrite_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
96 | #define XEEBeginRead(a) You_cannot_call_the_XEEBeginRead_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
97 | #define XEERead(a) You_cannot_call_the_XEERead_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
98 | #define XEEReadArray(a, b, c) You_cannot_call_the_XEEReadArray_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
99 | #define XEEEndRead() You_cannot_call_the_XEEEndRead_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
100 | #define XEEIsBusy() You_cannot_call_the_XEEIsBusy_function_without_defining_EEPROM_CS_TRIS_in_HardwareProfile_h_first() |
||
101 | #endif |
||
102 | |||
103 | #endif |
Powered by WebSVN v2.8.3