?? release.c
字號:
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// FAT32 File IO Library Linux Test Version
// V1.0L
// Rob Riglar
// Copyright 2003,2004
//
// Email: admin@robs-projects.com
//
// Compiled and tested on Redhat 'Shrike' with GNU gcc
//-----------------------------------------------------------------------------
//
// This file is part of FAT32 File IO Library.
//
// FAT32 File IO Library is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// FAT32 File IO Library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with FAT32 File IO Library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "structures.h"
#define debug 0
// IDE Includes
#include "IDE/IDE_Access.h"#include "FAT/FAT32_Base.h"
#include "FAT/FAT32_Access.h"
#include "File-Dir-IO/DirSearchBrowse.h"
#include "FileLib/filelib.h"
//-----------------------------------------------------------------------------
// Main
//-----------------------------------------------------------------------------
int main(void)
{
byte keyinput;
int i;
// Display Startup Message
printf("\r\nStarting Up MP3 Board V2.1.0");
// Send initialise commands to open a partition (make sure FAT32 partition)
IDE_InitDrive("/dev/hdb1");
// Load FAT Parameters
FAT32_LoadFAT();
while (1) // Main Menu
{
printf("\r\nATA Hard Drive Controller Menu\r\n");
printf("1. Browse Root Dir\r\n");
printf("2. Display FAT details\r\n");
printf("3. Dump current sector\r\n");
printf("4. Open Named File\r\n");
keyinput = getc(stdin);
if (keyinput=='1') ListDirectory(FAT32.RootDir_First_Cluster);
if (keyinput=='2') ShowFATDetails();
if (keyinput=='3')
for (i=0; i<512;i++) printf("0x%X ", IDE_SectorByte(i));
if (keyinput=='4')
fopen_TEST("C:\\Conjure One - Center Of The Sun.mp3");
}
return 1;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -