Skip to content

Commit 93db0c3

Browse files
OzgunKanalOzgun
authored and
EricB-ADI
committed
feat(Examples): Add SDHC example for MAX32655FTHR (#1079)
Co-authored-by: Ozgun <[email protected]>
1 parent e6d0a22 commit 93db0c3

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Examples/MAX32655/SDHC_FTHR/include/sdhc.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444

4545
void generateMessage(unsigned length);
4646

47-
int mount(void);
47+
int mount();
4848

49-
int umount(void);
49+
int umount();
5050

51-
int formatSDHC(void);
51+
int formatSDHC();
5252

53-
int getSize(void);
53+
int getSize();
5454

55-
int ls(void);
55+
int ls();
5656

5757
int createFile(char *file_name, unsigned int length);
5858

@@ -64,8 +64,8 @@ int cd(char *dir_name);
6464

6565
int deleteFile(char *file_name);
6666

67-
int example(void);
67+
int example();
6868

69-
void waitCardInserted(void);
69+
void waitCardInserted();
7070

7171
#endif // EXAMPLES_MAX32655_SDHC_FTHR_INCLUDE_SDHC_H_

Examples/MAX32655/SDHC_FTHR/src/sdhc.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void generateMessage(unsigned length)
5050
}
5151
}
5252

53-
int mount(void)
53+
int mount()
5454
{
5555
fs = &fs_obj;
5656

@@ -67,7 +67,7 @@ int mount(void)
6767
return err;
6868
}
6969

70-
int umount(void)
70+
int umount()
7171
{
7272
if ((err = f_mount(NULL, "", 0)) != FR_OK) { //Unmount the default drive from its mount point
7373
printf("Error unmounting volume: %s\n", FF_ERRORS[err]);
@@ -79,7 +79,7 @@ int umount(void)
7979
return err;
8080
}
8181

82-
int formatSDHC(void)
82+
int formatSDHC()
8383
{
8484
printf("\n\n*****THE DRIVE WILL BE FORMATTED IN 5 SECONDS*****\n");
8585
printf("**************PRESS ANY KEY TO ABORT**************\n\n");
@@ -112,7 +112,7 @@ int formatSDHC(void)
112112
return err;
113113
}
114114

115-
int getSize(void)
115+
int getSize()
116116
{
117117
if (!mounted) {
118118
mount();
@@ -132,7 +132,7 @@ int getSize(void)
132132
return err;
133133
}
134134

135-
int ls(void)
135+
int ls()
136136
{
137137
if (!mounted) {
138138
mount();
@@ -331,7 +331,7 @@ int deleteFile(char *file_name)
331331
return err;
332332
}
333333

334-
int example(void)
334+
int example()
335335
{
336336
unsigned int length = 256;
337337

@@ -462,7 +462,7 @@ int example(void)
462462
return 0;
463463
}
464464

465-
void waitCardInserted(void)
465+
void waitCardInserted()
466466
{
467467
// On the MAX78000FTHR board, P0.12 will be pulled low when a card is inserted.
468468
mxc_gpio_cfg_t cardDetect;

0 commit comments

Comments
 (0)