EE445M RTOS
Taken at the University of Texas Spring 2015
shellpp.cpp File Reference
#include "shellpp.hpp"
#include "blinker.hpp"
#include "inc/hw_memmap.h"
#include "libio/kbd.h"
Include dependency graph for shellpp.cpp:

Go to the source code of this file.

Macros

#define EXIT_SUCCESS   0
 
#define SHELL_VERBOSE
 
#define shell_command_is(a)   0 == ustrncmp(a, (const char*) buf.buf, buf.length())
 

Functions

void * umemcpy (void *str1, const void *str2, long n)
 

Macro Definition Documentation

#define EXIT_SUCCESS   0
#define shell_command_is (   a)    0 == ustrncmp(a, (const char*) buf.buf, buf.length())

Definition at line 12 of file shellpp.cpp.

Referenced by shell::execute_command().

#define SHELL_VERBOSE

Definition at line 10 of file shellpp.cpp.

Function Documentation

void* umemcpy ( void *  str1,
const void *  str2,
long  n 
)

Definition at line 132 of file shellpp.cpp.

Referenced by shell::set_ps1().

132  {
133 
134  long i = 0;
135  uint8_t *dest8 = (uint8_t*)str1;
136  uint8_t *source8 = (uint8_t*)str2;
137  for (i=0; i<n; ++i) {
138  dest8[i] = source8[i];
139  }
140 }

Here is the caller graph for this function: