Contiki-NG
Loading...
Searching...
No Matches
Contiki-NG interactive management shell

Files

file  shell.h
 Main header file for the Contiki shell.
 

Functions

void serial_shell_init (void)
 Initializes Serial Shell module.
 
 watchdog_reboot ()
 Keeps control until the WDT throws a reset signal.
 
void shell_commands_init (void)
 Initializes Shell-commands module.
 
void shell_output_6addr (shell_output_func output, const uip_ipaddr_t *ipaddr)
 Prints an IPv6 address.
 
void shell_output_lladdr (shell_output_func output, const linkaddr_t *lladdr)
 Prints a link-layer address.
 
void shell_init (void)
 Initializes Shell module.
 
 PT_THREAD (shell_input(struct pt *pt, shell_output_func output, const char *cmd))
 A protothread that is spawned by a Shell driver when receiving a new line.
 

Detailed Description

The shell enables to inspect and manage the network layer and provides other system functionalities

Function Documentation

◆ shell_output_6addr()

void shell_output_6addr ( shell_output_func output,
const uip_ipaddr_t * ipaddr )

Prints an IPv6 address.

Parameters
outputThe output function
ipaddrThe IPv6 to printed

Definition at line 55 of file shell.c.

References ipaddr, and uiplib_ipaddr_snprint().

◆ shell_output_lladdr()

void shell_output_lladdr ( shell_output_func output,
const linkaddr_t * lladdr )

Prints a link-layer address.

Parameters
outputThe output function
lladdrThe link-layer to be printed

Definition at line 64 of file shell.c.

◆ watchdog_reboot()

watchdog_reboot ( void )

Keeps control until the WDT throws a reset signal.

Starts the WDT if not already started.

Keeps control until the WDT throws a reset signal.

Starts the WDT if not already started.

Keeps control until the WDT throws a reset signal.

Definition at line 94 of file watchdog.c.

References INTERRUPTS_DISABLE, SMWDTHROSC_WDCTL, SMWDTHROSC_WDCTL_EN, SMWDTHROSC_WDCTL_INT, and watchdog_start().