NetBurner 3.1
cfc_mcf.h
1 /*NB_REVISION*/
2 
3 #ifndef _CFC_IDE_H_
4 #define _CFC_IDE_H_
5 
6 /****************************************************************************
7  *
8  * Copyright (c) 2003 by HCC Embedded
9  *
10  * This software is copyrighted by and is the sole property of
11  * HCC. All rights, title, ownership, or other interests
12  * in the software remain the property of HCC. This
13  * software may only be used in accordance with the corresponding
14  * license agreement. Any unauthorized use, duplication, transmission,
15  * distribution, or disclosure of this software is expressly forbidden.
16  *
17  * This Copyright notice may not be removed or modified without prior
18  * written consent of HCC.
19  *
20  * HCC reserves the right to modify this software without notice.
21  *
22  * HCC Embedded
23  * Budapest 1132
24  * Victor Hugo Utca 11-15
25  * Hungary
26  *
27  * Tel: +36 (1) 450 1302
28  * Fax: +36 (1) 450 1303
29  * http: www.hcc-embedded.com
30  * email: info@hcc-embedded.com
31  *
32  ***************************************************************************/
33 
34 #include <effs_fat/fat.h>
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41 #define HCC_HW
42 #define F_CFC_DRIVE0 0
43 #define F_CFC_DRIVE1 1
44 
45 /*****************************************************************************/
46 #define CFC_ERR_NOTPLUGGED -1 /* for high level */
47 
48  enum
49  {
50  /* 0 */ CFC_NO_ERROR,
51  /*101*/ CFC_ERR_BUSY_ATCYL = 101,
52  /*102*/ CFC_ERR_BUSY_ATDRQ,
53  /*103*/ CFC_ERR_BUSY_ATCMD,
54  /*104*/ CFC_ERR_TIMEOUT,
55  /*105*/ CFC_ERR_STATE,
56  /*106*/ CFC_ERR_SECCOU,
57  /*107*/ CFC_ERR_NOTAVAILABLE
58  };
59 
60  /******************************************************************************
61  *
62  * Big endian definitions
63  *
64  *****************************************************************************/
65 
66 #define MOTOuint16_t(x) ((((x) >> 8) & 0x00ff) | (((x) << 8) & 0xff00))
67 
68  /******************************************************************************
69  *
70  * Functions
71  *
72  *****************************************************************************/
73 
74  // extern int cfc_initfunc(unsigned long driver_param); /* driver init function */
75  extern F_DRIVER *cfc_initfunc(unsigned long driver_param); /* driver init function */
76 #define CFC_PAGE_SIZE 512 /* CFC page size in bytes */
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 /******************************************************************************
83  *
84  * end cfc_ide.h
85  *
86  *****************************************************************************/
87 
88 #endif /* _CFC_IDE_H_ */