Skip to content

Commit

Permalink
ADD: command line buf
Browse files Browse the repository at this point in the history
  • Loading branch information
r2axz committed Nov 13, 2020
1 parent 47f81b6 commit 5002dec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cdc_shell.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include "cdc_shell.h"

void cdc_shell_init() {
static char cmd_line[USB_SHELL_MAX_CMD_LINE_SIZE];
static char *cmd_line_p = cmd_line;

void cdc_shell_init() {
cmd_line_p = cmd_line;
}

void cdc_shell_exit() {
Expand Down
2 changes: 2 additions & 0 deletions cdc_shell.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef CDC_SHELL_H
#define CDC_SHELL_H

#define USB_SHELL_MAX_CMD_LINE_SIZE 0x100

void cdc_shell_init();
void cdc_shell_exit();

Expand Down

0 comments on commit 5002dec

Please # to comment.