EE445M RTOS
Taken at the University of Texas Spring 2015
shell.c File Reference
#include "shell.h"
#include "libuart/uart.h"
#include "libhw/hardware.h"
#include "libos/semaphore.h"
#include "libos/os.h"
#include "inc/hw_memmap.h"
#include "inc/hw_ints.h"
#include <stdint.h>
#include <stdbool.h>
#include "driverlib/pin_map.h"
#include "driverlib/timer.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
Include dependency graph for shell.c:

Go to the source code of this file.

Functions

void shell_spawn ()
 
char * shell_represent ()
 
void shell_kill ()
 
void shell_uart_handler (notification note)
 
void shell_set_ps1 (char *new_ps1)
 
void shell_clear_shell_buffer ()
 
void shell_print_ps1 ()
 
exit_status_t shell_execute_command ()
 

Variables

static unsigned short SHELL_BUFFER_POSITION
 
static char SHELL_BUFFER [64]
 
static char * SHELL_PS1 [4]
 
static char * SHELL_DEFAULT_PS1 = "\r\n> "
 

Function Documentation

void shell_set_ps1 ( char *  new_ps1)

Definition at line 82 of file shell.c.

References memcpy(), SHELL_PS1, and ustrlen().

Referenced by shell_spawn().

82  {
83 
84  /* TODO: ensure this copies a null terminator */
85  memcpy(SHELL_PS1, new_ps1, ustrlen(new_ps1));
86 }
static char * SHELL_PS1[4]
Definition: shell.c:23
uint32_t ustrlen(const char *s)
Definition: nexus.c:17
void * memcpy(void *str1, const void *str2, long n)
Definition: nexus.c:25

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

char SHELL_BUFFER[64]
static
unsigned short SHELL_BUFFER_POSITION
static

Definition at line 20 of file shell.c.

Referenced by shell_clear_shell_buffer(), and shell_uart_handler().

char* SHELL_DEFAULT_PS1 = "\r\n> "
static

Definition at line 24 of file shell.c.

Referenced by shell_spawn().

char* SHELL_PS1[4]
static

Definition at line 23 of file shell.c.

Referenced by shell_print_ps1(), and shell_set_ps1().