📄 f34x_msd_dir_commands.lst
字号:
C51 COMPILER V7.50 F34X_MSD_DIR_COMMANDS 11/28/2006 10:54:04 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE F34X_MSD_DIR_COMMANDS
OBJECT MODULE PLACED IN F34x_MSD_Dir_Commands.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\c51.exe F34x_MSD_Dir_Commands.c PW(80) SB L
-C OT(9,SIZE) CD DB OE DF(__F340_VER__) LARGE
line level source
1 //----------------------------------------------------------------
--------------
2 // F34x_MSD_Dir_Commands.c
3 //----------------------------------------------------------------
--------------
4 // Copyright 2006 Silicon Laboratories, Inc.
5 // http://www.silabs.com
6 //
7 // Program Description:
8 //
9 // This file contains the functions used by the USB MSD RD example
- application
10 // to operate on directories
11 //
12 //
13 // How To Test: See Readme.txt
14 //
15 //
16 // FID: 34X000033
17 // Target: C8051F34x
18 // Tool chain: Keil
19 // Command Line: See Readme.txt
20 // Project Name: F34x_USB_MSD
21 //
22 // Release 1.1
23 // -All changes by PKC
24 // -09 JUN 2006
25 // -No changes; incremented revision number to match project re
-vision
26 //
27 // Release 1.0
28 // -Initial Release
29 //
30
31 //----------------------------------------------------------------
--------------
32 // Includes
33 //----------------------------------------------------------------
--------------
34
35 #include <string.h>
1 =1 /*----------------------------------------------------------------
-----------
2 =1 STRING.H
3 =1
4 =1 String functions.
5 =1 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, In
-c.
6 =1 All rights reserved.
7 =1 ------------------------------------------------------------------
---------*/
8 =1
9 =1 #ifndef __STRING_H__
10 =1 #define __STRING_H__
C51 COMPILER V7.50 F34X_MSD_DIR_COMMANDS 11/28/2006 10:54:04 PAGE 2
11 =1
12 =1 #ifndef _SIZE_T
13 =1 #define _SIZE_T
14 =1 typedef unsigned int size_t;
15 =1 #endif
16 =1
17 =1 #ifndef NULL
18 =1 #define NULL ((void *) 0L)
19 =1 #endif
20 =1
21 =1 #pragma SAVE
22 =1 #pragma REGPARMS
23 =1 extern char *strcat (char *s1, char *s2);
24 =1 extern char *strncat (char *s1, char *s2, int n);
25 =1
26 =1 extern char strcmp (char *s1, char *s2);
27 =1 extern char strncmp (char *s1, char *s2, int n);
28 =1
29 =1 extern char *strcpy (char *s1, char *s2);
30 =1 extern char *strncpy (char *s1, char *s2, int n);
31 =1
32 =1 extern int strlen (char *);
33 =1
34 =1 extern char *strchr (const char *s, char c);
35 =1 extern int strpos (const char *s, char c);
36 =1 extern char *strrchr (const char *s, char c);
37 =1 extern int strrpos (const char *s, char c);
38 =1
39 =1 extern int strspn (char *s, char *set);
40 =1 extern int strcspn (char *s, char *set);
41 =1 extern char *strpbrk (char *s, char *set);
42 =1 extern char *strrpbrk (char *s, char *set);
43 =1 extern char *strstr (char *s, char *sub);
44 =1 extern char *strtok (char *str, const char *set);
45 =1
46 =1 extern char memcmp (void *s1, void *s2, int n);
47 =1 extern void *memcpy (void *s1, void *s2, int n);
48 =1 extern void *memchr (void *s, char val, int n);
49 =1 extern void *memccpy (void *s1, void *s2, char val, int n);
50 =1 extern void *memmove (void *s1, void *s2, int n);
51 =1 extern void *memset (void *s, char val, int n);
52 =1 #pragma RESTORE
53 =1
54 =1 #endif
36 #include <stdio.h>
1 =1 /*----------------------------------------------------------------
-----------
2 =1 STDIO.H
3 =1
4 =1 Prototypes for standard I/O functions.
5 =1 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, In
-c.
6 =1 All rights reserved.
7 =1 ------------------------------------------------------------------
---------*/
8 =1
9 =1 #ifndef __STDIO_H__
10 =1 #define __STDIO_H__
11 =1
12 =1 #ifndef EOF
13 =1 #define EOF -1
14 =1 #endif
C51 COMPILER V7.50 F34X_MSD_DIR_COMMANDS 11/28/2006 10:54:04 PAGE 3
15 =1
16 =1 #ifndef NULL
=1 #define NULL ((void *) 0)
=1 #endif
19 =1
20 =1 #ifndef _SIZE_T
=1 #define _SIZE_T
=1 typedef unsigned int size_t;
=1 #endif
24 =1
25 =1 #pragma SAVE
26 =1 #pragma REGPARMS
27 =1 extern char _getkey (void);
28 =1 extern char getchar (void);
29 =1 extern char ungetchar (char);
30 =1 extern char putchar (char);
31 =1 extern int printf (const char *, ...);
32 =1 extern int sprintf (char *, const char *, ...);
33 =1 extern int vprintf (const char *, char *);
34 =1 extern int vsprintf (char *, const char *, char *);
35 =1 extern char *gets (char *, int n);
36 =1 extern int scanf (const char *, ...);
37 =1 extern int sscanf (char *, const char *, ...);
38 =1 extern int puts (const char *);
39 =1
40 =1 #pragma RESTORE
41 =1
42 =1 #endif
43 =1
37 #include <ctype.h>
1 =1 /*----------------------------------------------------------------
-----------
2 =1 CTYPE.H
3 =1
4 =1 Prototypes for character functions.
5 =1 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, In
-c.
6 =1 All rights reserved.
7 =1 ------------------------------------------------------------------
---------*/
8 =1
9 =1 #ifndef __CTYPE_H__
10 =1 #define __CTYPE_H__
11 =1
12 =1 #pragma SAVE
13 =1 #pragma REGPARMS
14 =1 extern bit isalpha (unsigned char);
15 =1 extern bit isalnum (unsigned char);
16 =1 extern bit iscntrl (unsigned char);
17 =1 extern bit isdigit (unsigned char);
18 =1 extern bit isgraph (unsigned char);
19 =1 extern bit isprint (unsigned char);
20 =1 extern bit ispunct (unsigned char);
21 =1 extern bit islower (unsigned char);
22 =1 extern bit isupper (unsigned char);
23 =1 extern bit isspace (unsigned char);
24 =1 extern bit isxdigit (unsigned char);
25 =1 extern unsigned char tolower (unsigned char);
26 =1 extern unsigned char toupper (unsigned char);
27 =1 extern unsigned char toint (unsigned char);
28 =1
29 =1 #define _tolower(c) ( (c)-'A'+'a' )
C51 COMPILER V7.50 F34X_MSD_DIR_COMMANDS 11/28/2006 10:54:04 PAGE 4
30 =1 #define _toupper(c) ( (c)-'a'+'A' )
31 =1 #define toascii(c) ( (c) & 0x7F )
32 =1 #pragma RESTORE
33 =1
34 =1 #endif
38 #include "F34x_MSD_Dir_Commands.h"
1 =1 //----------------------------------------------------------------
--------------
2 =1 // F34x_MSD_Dir_Commands.h
3 =1 //----------------------------------------------------------------
--------------
4 =1 // Copyright 2006 Silicon Laboratories, Inc.
5 =1 // http://www.silabs.com
6 =1 //
7 =1 // Program Description:
8 =1 //
9 =1 // Header file with function prototypes relevant to F34x_Dir_Comma
-nds.c
10 =1 //
11 =1 //
12 =1 // FID: 34X000034
13 =1 // Target: C8051F34x
14 =1 // Tool chain: Keil
15 =1 // Command Line: See Readme.txt
16 =1 // Project Name: F34x_USB_MSD
17 =1 //
18 =1 // Release 1.1
19 =1 // -All changes by PKC
20 =1 // -09 JUN 2006
21 =1 // -No changes; incremented revision number to match project re
-vision
22 =1 //
23 =1 // Release 1.0
24 =1 // -Initial Release
25 =1 //
26 =1
27 =1 //----------------------------------------------------------------
--------------
28 =1 // Header File Preprocessor Directive
29 =1 //----------------------------------------------------------------
--------------
30 =1
31 =1
32 =1 #ifndef __DIRECTORIES_COMMANDS_H__
33 =1 #define __DIRECTORIES_COMMANDS_H__
34 =1
35 =1 //----------------------------------------------------------------
--------------
36 =1 // Function Prototypes
37 =1 //----------------------------------------------------------------
--------------
38 =1
39 =1 // See F34x_Dir_Commands.c for prototypes of functions with file s
-cope
40 =1
41 =1
42 =1 void Remove_Direcory(char* dir_name);
43 =1 void Make_Directory(char* dir_name);
44 =1 int Change_Directory(char* dir_name);
45 =1
46 =1 //----------------------------------------------------------------
--------------
C51 COMPILER V7.50 F34X_MSD_DIR_COMMANDS 11/28/2006 10:54:04 PAGE 5
47 =1 // Header File Preprocessor Directive
48 =1 //----------------------------------------------------------------
--------------
49 =1
50 =1 #endif // #define __DIRECTORIES_CO
-MMANDS_H__
51 =1
52 =1 //----------------------------------------------------------------
--------------
53 =1 // End Of File
54 =1 //----------------------------------------------------------------
--------------
39 #include "F34x_MSD_File_System.h"
1 =1 //----------------------------------------------------------------
--------------
2 =1 // F34x_MSD_File_System.h
3 =1 //----------------------------------------------------------------
--------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -