forked from espressif/esp-idf
refactor(console): Enable astyle formatting
This commit is contained in:
@@ -78,7 +78,7 @@ typedef struct {
|
||||
*/
|
||||
typedef struct {
|
||||
int channel; //!< UART channel number (count from zero)
|
||||
int baud_rate; //!< Comunication baud rate
|
||||
int baud_rate; //!< Communication baud rate
|
||||
int tx_gpio_num; //!< GPIO number for TX path, -1 means using default one
|
||||
int rx_gpio_num; //!< GPIO number for RX path, -1 means using default one
|
||||
} esp_console_dev_uart_config_t;
|
||||
|
@@ -217,7 +217,7 @@ esp_err_t esp_console_new_repl_uart(const esp_console_dev_uart_config_t *dev_con
|
||||
#elif SOC_UART_SUPPORT_XTAL_CLK
|
||||
uart_sclk_t clk_source = UART_SCLK_XTAL;
|
||||
#else
|
||||
#error "No UART clock source is aware of DFS"
|
||||
#error "No UART clock source is aware of DFS"
|
||||
#endif // SOC_UART_SUPPORT_xxx
|
||||
const uart_config_t uart_config = {
|
||||
.baud_rate = dev_config->baud_rate,
|
||||
|
@@ -51,7 +51,7 @@ static void prepare_input_stream(void)
|
||||
assert(tcgetattr(stdin_fileno, &s_orig_termios) == 0);
|
||||
struct termios raw = s_orig_termios;
|
||||
raw.c_iflag |= ICRNL; // we translate to NL because linenoise expects NL
|
||||
raw.c_lflag &= ~(ECHO | ICANON); // turn off echo and cononical mode
|
||||
raw.c_lflag &= ~(ECHO | ICANON); // turn off echo and canonical mode
|
||||
assert(tcsetattr(stdin_fileno, TCSAFLUSH, &raw) == 0);
|
||||
|
||||
// Make sure user does not end up with a broken terminal
|
||||
|
@@ -40,7 +40,7 @@ size_t esp_console_split_argv(char *line, char **argv, size_t argv_size)
|
||||
char *next_arg_start = line;
|
||||
char *out_ptr = line;
|
||||
for (char *in_ptr = line; argc < argv_size - 1; ++in_ptr) {
|
||||
int char_in = (unsigned char) *in_ptr;
|
||||
int char_in = (unsigned char) * in_ptr;
|
||||
if (char_in == 0) {
|
||||
break;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ size_t esp_console_split_argv(char *line, char **argv, size_t argv_size)
|
||||
} else {
|
||||
/* unrecognized escape character, skip */
|
||||
}
|
||||
state = (split_state_t) (state & (~SS_FLAG_ESCAPE));
|
||||
state = (split_state_t)(state & (~SS_FLAG_ESCAPE));
|
||||
break;
|
||||
|
||||
case SS_ARG:
|
||||
|
@@ -49,7 +49,6 @@ components_not_formatted_temporary:
|
||||
- "/components/bootloader/"
|
||||
- "/components/bt/"
|
||||
- "/components/cmock/"
|
||||
- "/components/console/"
|
||||
- "/components/efuse/"
|
||||
- "/components/esp_coex/"
|
||||
- "/components/esp_eth/"
|
||||
|
Reference in New Issue
Block a user