#include <util/top_defs.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <util/printf-stdarg.h>
#include <util/console.h>
#include <ports/avr32/board_init.h>
#include <usart.h>
Macros | |
#define | CMD_MAX_LEN 80 |
#define | MAX_ARGS 16 |
Functions | |
int | console_add_cmd (const char *str, cmd_cb_t cb, void *ctx) |
char * | console_gets () |
void | console_init (void) |
void | console_init_silent (void) |
void | console_poll (void) |
int | console_schedule_cmd (char *cmd, int interactive) |
int | io_getc (char *c) |
Variables | |
struct { | |
cmd_cb_t cb | |
void * ctx | |
const char * str | |
} | cmd_list [16] = { { 0 } } |
static uint8_t | is_initialized = 0 |
#define CMD_MAX_LEN 80 |
Referenced by console_gets().
#define MAX_ARGS 16 |
Referenced by console_schedule_cmd().
int console_add_cmd | ( | const char * | str, |
cmd_cb_t | cb, | ||
void * | ctx | ||
) |
References ARRAY_SIZE, cb, cmd_list, ctx, i, and str.
Referenced by wl_init_complete_cb().
char* console_gets | ( | void | ) |
References buf, c, CMD_MAX_LEN, io_getc(), and NULL.
Referenced by console_poll().
void console_init | ( | void | ) |
References is_initialized, and printk().
Referenced by wl_init_complete_cb().
void console_init_silent | ( | void | ) |
References is_initialized.
void console_poll | ( | void | ) |
References buf, console_gets(), and console_schedule_cmd().
Referenced by poll().
int console_schedule_cmd | ( | char * | cmd, |
int | interactive | ||
) |
References ARRAY_SIZE, buf, cb, CMD_INPROGRESS, cmd_list, ctx, i, MAX_ARGS, NULL, printk(), s, state, and str.
Referenced by console_poll().
int io_getc | ( | char * | c | ) |
References ci, CONFIG_CONSOLE_PORT, status, usart_putchar(), usart_read_char(), USART_RX_EMPTY, and USART_RX_ERROR.
Referenced by console_gets().
cmd_cb_t cb |
struct { ... } cmd_list[16] |
Referenced by console_add_cmd(), and console_schedule_cmd().
void* ctx |
Referenced by ai_async_update_cmd_status(), ai_usb_ms_audio_context_restore(), ai_usb_ms_audio_context_save(), ai_usb_ms_audio_nav_mov(), cmd_set_ip(), cmd_status(), cmd_ttcp(), console_add_cmd(), console_schedule_cmd(), init_ping_info(), ping_set_callback(), rx_isr(), tcp_timeout_cb(), tcpip_callback_with_block(), tcpip_callbackmsg_new(), timer_init(), timer_sched_timeout_cb(), udp_timeout_cb(), wl_cm_conn_cb(), wl_cm_disconn_cb(), wl_cm_start(), wl_conn_lost_cb(), wl_event_cb(), wl_init_complete_cb(), wl_media_connected_cb(), and wl_scan_complete_cb().
|
static |
Referenced by console_init(), and console_init_silent().
const char* str |