freemyipod r49 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r48‎ | r49 | r50 >
Date:13:34, 7 August 2010
Author:theseven
Status:new
Tags:
Comment:
Fix a few FAT code includes
Modified paths:
  • /embios/trunk/SOURCES (modified) (history)
  • /embios/trunk/disk.c (modified) (history)
  • /embios/trunk/fat.c (modified) (history)

Diff [purge]

Index: embios/trunk/disk.c
@@ -18,6 +18,8 @@
1919 * KIND, either express or implied.
2020 *
2121 ****************************************************************************/
 22+#include "global.h"
 23+#include "thread.h"
2224 #include <stdio.h>
2325 #include "storage.h"
2426 #include "debug.h"
Index: embios/trunk/SOURCES
@@ -7,6 +7,8 @@
88 target/ipodnano2g/i2c.c
99 target/ipodnano2g/interrupt.c
1010 target/ipodnano2g/pmu.c
 11+target/ipodnano2g/nand.c
 12+target/ipodnano2g/storage.c
1113 usb/synopsysotg.c
1214 #endif
1315
@@ -36,4 +38,6 @@
3739 shutdown.c
3840 syscall.c
3941 disk.c
40 -fat32.c
 42+fat.c
 43+file.c
 44+dir.c
Index: embios/trunk/fat.c
@@ -18,19 +18,16 @@
1919 * KIND, either express or implied.
2020 *
2121 ****************************************************************************/
 22+#include "global.h"
 23+#include "thread.h"
2224 #include <stdio.h>
2325 #include <string.h>
2426 #include <stdlib.h>
2527 #include <ctype.h>
26 -#include <stdbool.h>
2728 #include "fat.h"
2829 #include "storage.h"
2930 #include "debug.h"
3031 #include "panic.h"
31 -#include "system.h"
32 -#include "timefuncs.h"
33 -#include "kernel.h"
34 -#include "rbunicode.h"
3532
3633 #define BYTES2INT16(array,pos) \
3734 (array[pos] | (array[pos+1] << 8 ))