Skip to content

Commit

Permalink
Remove MMC mode in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Baldanos committed Mar 24, 2023
1 parent 28deb4f commit fa17a88
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 253 deletions.
1 change: 0 additions & 1 deletion src/common/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ static struct cmd_map {
{ T_WIEGAND, cmd_mode_init },
{ T_LIN, cmd_mode_init },
{ T_SMARTCARD, cmd_mode_init },
{ T_MMC, cmd_mode_init },
{ 0, NULL }
};

Expand Down
34 changes: 0 additions & 34 deletions src/hydrabus/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ const t_token_dict tl_dict[] = {
{ T_PRESCALER, "prescaler" },
{ T_CONVENTION, "convention" },
{ T_DELAY, "delay" },
{ T_MMC, "mmc" },
{ T_CLOCK_STRETCH, "clock-stretch" },
/* Developer warning add new command(s) here */

Expand Down Expand Up @@ -1685,34 +1684,6 @@ t_token tokens_flash[] = {
{ }
};

t_token tokens_mode_mmc[] = {
{
T_SHOW,
.subtokens = tokens_mode_show,
.help = "Show mmc parameters"
},
/* mmc-specific commands */
{
T_PINS,
.arg_type = T_ARG_UINT,
.help = "Number of data pins (1 or 4)"
},
{
T_ID,
.help = "Displays the CID and CSD registers"
},
/* BP commands */
{
T_EXIT,
.help = "Exit mmc mode"
},
{ }
};

t_token tokens_mmc[] = {
{ }
};

t_token tokens_gpio_mode[] = {
{
T_IN,
Expand Down Expand Up @@ -2206,11 +2177,6 @@ t_token tl_tokens[] = {
.subtokens = tokens_flash,
.help = "NAND flash mode"
},
{
T_MMC,
.subtokens = tokens_mmc,
.help = "MMC/eMMC mode"
},
{
T_WIEGAND,
.subtokens = tokens_wiegand,
Expand Down
1 change: 0 additions & 1 deletion src/hydrabus/commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ enum {
T_PRESCALER,
T_CONVENTION,
T_DELAY,
T_MMC,
T_CLOCK_STRETCH,
/* Developer warning add new command(s) here */

Expand Down
1 change: 0 additions & 1 deletion src/hydrabus/hydrabus.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ HYDRABUSSRC = hydrabus/hydrabus.c \
hydrabus/hydrabus_bbio_aux.c \
hydrabus/hydrabus_aux.c \
hydrabus/hydrabus_serprog.c \
hydrabus/hydrabus_mode_mmc.c \
hydrabus/hydrabus_bbio_mmc.c \
hydrabus/hydrabus_bbio_sdio.c

Expand Down
2 changes: 0 additions & 2 deletions src/hydrabus/hydrabus_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ extern t_token tokens_mode_flash[];
extern t_token tokens_mode_wiegand[];
extern t_token tokens_mode_lin[];
extern t_token tokens_mode_smartcard[];
extern t_token tokens_mode_mmc[];

static struct {
int token;
Expand All @@ -90,7 +89,6 @@ static struct {
{ T_WIEGAND, tokens_mode_wiegand, &mode_wiegand_exec },
{ T_LIN, tokens_mode_lin, &mode_lin_exec },
{ T_SMARTCARD, tokens_mode_smartcard, &mode_smartcard_exec },
{ T_MMC, tokens_mode_mmc, &mode_mmc_exec },
};

const char hydrabus_mode_str_cs_enabled[] = "/CS ENABLED\r\n";
Expand Down
189 changes: 0 additions & 189 deletions src/hydrabus/hydrabus_mode_mmc.c

This file was deleted.

25 changes: 0 additions & 25 deletions src/hydrabus/hydrabus_mode_mmc.h

This file was deleted.

0 comments on commit fa17a88

Please sign in to comment.