Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Mmc Utils
Commits
45541d55
Commit
45541d55
authored
Feb 12, 2012
by
Chris Ball
Browse files
Hook up "mmc extcsd read/write" commands.
Signed-off-by:
Chris Ball
<
cjb@laptop.org
>
parent
a8bfde77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
45541d55
CC
=
gcc
CC
=
gcc
AM_CFLAGS
=
-D_FILE_OFFSET_BITS
=
64
-D_FORTIFY_SOURCE
=
2
AM_CFLAGS
=
-D_FILE_OFFSET_BITS
=
64
-D_FORTIFY_SOURCE
=
2
CFLAGS
=
-g
-O0
CFLAGS
=
-g
-O0
objects
=
mmc.o mmc_cmds.
h
objects
=
mmc.o mmc_cmds.
o
CHECKFLAGS
=
-Wall
-Werror
-Wuninitialized
-Wundef
CHECKFLAGS
=
-Wall
-Werror
-Wuninitialized
-Wundef
...
...
mmc.c
View file @
45541d55
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include "mmc_cmds.h"
#define MMC_VERSION "0.1"
#define MMC_VERSION "0.1"
#define BASIC_HELP 0
#define BASIC_HELP 0
...
@@ -48,6 +50,16 @@ static struct Command commands[] = {
...
@@ -48,6 +50,16 @@ static struct Command commands[] = {
/*
/*
* avoid short commands different for the case only
* avoid short commands different for the case only
*/
*/
{
do_read_extcsd
,
-
1
,
"extcsd read"
,
"<device>
\n
"
"Print extcsd data from <device>."
,
NULL
},
{
do_write_extcsd
,
-
1
,
"extcsd write"
,
"<device>
\n
"
"Write extcsd data to <device>."
,
NULL
},
{
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment