Subversion Repositories freemyipod

Rev

Rev 60 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60 Rev 71
Line 18... Line 18...
18
 * KIND, either express or implied.
18
 * KIND, either express or implied.
19
 *
19
 *
20
 ****************************************************************************/
20
 ****************************************************************************/
21
#include "global.h"
21
#include "global.h"
22
#include "thread.h"
22
#include "thread.h"
23
#include <string.h>
23
#include "string.h"
-
 
24
#include "stdio.h"
24
#include "fat.h"
25
#include "fat.h"
25
#include "storage.h"
26
#include "storage.h"
26
#include "debug.h"
27
#include "debug.h"
27
#include "panic.h"
28
#include "panic.h"
28
#include "snprintf.h"
-
 
29
 
29
 
30
#define BYTES2INT16(array,pos) \
30
#define BYTES2INT16(array,pos) \
31
          (array[pos] | (array[pos+1] << 8 ))
31
          (array[pos] | (array[pos+1] << 8 ))
32
#define BYTES2INT32(array,pos) \
32
#define BYTES2INT32(array,pos) \
33
    ((long)array[pos] | ((long)array[pos+1] << 8 ) | \
33
    ((long)array[pos] | ((long)array[pos+1] << 8 ) | \