diff options
Diffstat (limited to 'workspace/ts100/inc/Disk.h')
-rw-r--r-- | workspace/ts100/inc/Disk.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/workspace/ts100/inc/Disk.h b/workspace/ts100/inc/Disk.h index 2199246f..6bc1aacd 100644 --- a/workspace/ts100/inc/Disk.h +++ b/workspace/ts100/inc/Disk.h @@ -1,16 +1,16 @@ /********************* (C) COPYRIGHT 2015 e-Design Co.,Ltd. **********************
-File Name : Disk.h
-Version : S100 APP Ver 2.11
-Description:
-Author : Celery
-Data: 2015/08/03
-History:
-2015/08/03 :
-*******************************************************************************/
+ File Name : Disk.h
+ Version : S100 APP Ver 2.11
+ Description:
+ Author : Celery
+ Data: 2015/08/03
+ History:
+ 2016/09/13 : Ben V. Brown - english comments
+ 2015/08/03 :
+ *******************************************************************************/
#ifndef __DISK_H
#define __DISK_H
-
#include "stm32f10x_flash.h"
#include "usb_scsi.h"
#include "usb_regs.h"
@@ -31,7 +31,6 @@ History: #define FILE_SECTOR &gDisk_buff[0x600]
#define Root (u8*)ROOT_SECTOR
-
//#define APP_BASE 0x0800C000
#define HEX 0
@@ -53,9 +52,9 @@ History: //#define FAT_DATA 0x00FFFFF8
#define VOLUME 0x40DD8D18 //0x3E645C29
-#define BUFF 0 // �������ݻ�����
+#define BUFF 0 //
-#define V32_BASE SECTOR_SIZE // V32 �ܹ� 8*4=32 �ֽ�
+#define V32_BASE SECTOR_SIZE // V32 8*4=32
#define W_ADDR 0
#define ADDR 1
#define H_ADDR 2
@@ -65,7 +64,7 @@ History: #define RD_CNT 6
#define WR_CNT 7
-#define VAR_BASE V32_BASE + 32 // VAR �ܹ� 9+17=26 �ֽ�
+#define VAR_BASE V32_BASE + 32 // VAR 9+17=26
#define USB_ST 0
#define SEG_KIND 1
#define SEG_LEN 2
@@ -75,10 +74,9 @@ History: #define DATA_CNT 6
#define F_TYPE 7
#define F_FLAG 8
-#define SEG_DATA 9 // ͨ�Ű������� 9~26 ��17�ֽ�
-
+#define SEG_DATA 9 //9~26
-u8 Cal_Val(u8 str[],u8 k,u8 flag);
+u8 Cal_Val(u8 str[], u8 k, u8 flag);
void Disk_BuffInit(void);
u8 ReWrite_All(void);
u8 Config_Analysis(void);
@@ -86,12 +84,12 @@ void Disk_BuffInit(void); void Disk_SecWrite(u8* pbuffer, u32 disk_addr);
void Close_File(void);
void Write_Memory(u32 w_offset, u32 w_length);
-void Read_Memory (u32 r_offset, u32 r_length);
-void Set_Ver(u8 str[],u8 i);
+void Read_Memory(u32 r_offset, u32 r_length);
+void Set_Ver(u8 str[], u8 i);
void Erase(void);
-char * Get_Line(char *dst,char *src, int n,int m);
+char * Get_Line(char *dst, char *src, int n, int m);
void Upper(u8* str, u16 len);
-u8* SearchFile(u8* pfilename, u16* pfilelen,u16* root_addr);
+u8* SearchFile(u8* pfilename, u16* pfilelen, u16* root_addr);
u8 ReWriteFlsash(void);
#endif
/********************************* END OF FILE ******************************/
|