Demonstration of a very simple unix-like shell. Based on integrating both Klaus Bu\'s SDHCFileSystem and the FATFileSystem library out of Thomas Hamilton\'s SDCard program. Result: you get high capacity + a plethora of filesystem functions.
FATFileSystem/Core/integer.h@0:792bddcf799d, 2011-10-11 (annotated)
- Committer:
- shimniok
- Date:
- Tue Oct 11 15:13:42 2011 +0000
- Revision:
- 0:792bddcf799d
Initial
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 0:792bddcf799d | 1 | //Modified by Thomas Hamilton, Copyright 2010 |
shimniok | 0:792bddcf799d | 2 | |
shimniok | 0:792bddcf799d | 3 | /*--------------------------------------------------------------------*/ |
shimniok | 0:792bddcf799d | 4 | /* Integer type definitions for FatFs module R0.08 (C)ChaN, 2010 */ |
shimniok | 0:792bddcf799d | 5 | /*--------------------------------------------------------------------*/ |
shimniok | 0:792bddcf799d | 6 | |
shimniok | 0:792bddcf799d | 7 | #ifndef _INTEGER |
shimniok | 0:792bddcf799d | 8 | #define _INTEGER |
shimniok | 0:792bddcf799d | 9 | |
shimniok | 0:792bddcf799d | 10 | #include "stdint.h" |
shimniok | 0:792bddcf799d | 11 | |
shimniok | 0:792bddcf799d | 12 | /* These types must be 16-bit, 32-bit or larger integer */ |
shimniok | 0:792bddcf799d | 13 | typedef int INT; |
shimniok | 0:792bddcf799d | 14 | typedef unsigned int UINT; |
shimniok | 0:792bddcf799d | 15 | |
shimniok | 0:792bddcf799d | 16 | /* These types must be 8-bit integer */ |
shimniok | 0:792bddcf799d | 17 | typedef char CHAR; |
shimniok | 0:792bddcf799d | 18 | typedef unsigned char UCHAR; |
shimniok | 0:792bddcf799d | 19 | typedef unsigned char BYTE; |
shimniok | 0:792bddcf799d | 20 | |
shimniok | 0:792bddcf799d | 21 | /* These types must be 16-bit integer */ |
shimniok | 0:792bddcf799d | 22 | typedef short SHORT; |
shimniok | 0:792bddcf799d | 23 | typedef unsigned short USHORT; |
shimniok | 0:792bddcf799d | 24 | typedef unsigned short WORD; |
shimniok | 0:792bddcf799d | 25 | typedef unsigned short WCHAR; |
shimniok | 0:792bddcf799d | 26 | |
shimniok | 0:792bddcf799d | 27 | /* These types must be 32-bit integer */ |
shimniok | 0:792bddcf799d | 28 | typedef long LONG; |
shimniok | 0:792bddcf799d | 29 | typedef unsigned long ULONG; |
shimniok | 0:792bddcf799d | 30 | typedef unsigned long DWORD; |
shimniok | 0:792bddcf799d | 31 | |
shimniok | 0:792bddcf799d | 32 | /* Boolean type */ |
shimniok | 0:792bddcf799d | 33 | typedef enum { FALSE = 0, TRUE } BOOL; |
shimniok | 0:792bddcf799d | 34 | |
shimniok | 0:792bddcf799d | 35 | #endif |