ButterflyMP3
|
00001 /* 00002 * testing.h 00003 * BflyMP3 00004 * 00005 * Created by Nick on 21/03/2007. 00006 * Copyright 2007 __MyCompanyName__. All rights reserved. 00007 * 00008 */ 00009 00010 00011 #include <avr/io.h> 00012 #include <avr/pgmspace.h> 00013 #include <avr/interrupt.h> 00014 #include "types.h" 00015 #include "uart.h" 00016 #include "delay.h" 00017 #include "vs1001.h" 00018 #include "mmc.h" 00019 #include "avrfat16.h" 00020 00021 //#include "fontset0.h" 00022 #include "button.h" 00023 //#include "font_ttuf1.h" 00024 #include "pcd8544.h" 00025 //#include "font_ttuf2.h" 00026 #include "lcdgraphics.h" 00027 //#define ASSUME_CONTIGOUS 1 00028 #define FAT_TABLEBUFFERSIZE 128 00029 extern uint8 mmc_sbuf[]; 00030 //extern uint8 FAT_buffer[]; // 512 byte buffer for sector reads/writes 00031 //extern uint8 frameBuffer[fbCols][fbRows]; 00032 extern uint8 fbXY[]; 00033 00034 #ifndef ASSUME_CONTIGOUS 00035 uint16 fat_sectors[FAT_TABLEBUFFERSIZE]; 00036 #endif 00037 uint8 longfilename[260]; 00038 00039 /*************************************************************************** 00040 * Name: dump_buffer 00041 * Description: Dumps the mmc_sbuf[] to the Uart 00042 * Parameters: <lines> # of lines (16 Bytes) to send starting from 0x00 00043 * Returns: none 00044 ***************************************************************************/ 00045 void dump_buffer(uint8 lines, uint8 buffer[]); 00046 00047 /*************************************************************************** 00048 * Name: MMC_tester 00049 * Description: Check out basic MMC functions 00050 * Parameters: none 00051 * Returns: Status byte, non-zero for failure. 00052 ***************************************************************************/ 00053 uint8 MMC_tester(void); 00054 00055 00056 /*************************************************************************** 00057 * Name: FAT_tester 00058 * Description: Routines to test filesystem functions to the mmc 00059 * Parameters: none 00060 * Returns: error code 00061 ***************************************************************************/ 00062 uint8 FAT_tester(void); 00063 00064 00065 00066