4 #include "inc/hw_memmap.h"
12 #define shell_command_is(a) \
13 0 == ustrncmp(a, (const char*) buf.buf, buf.length())
50 if((!*s1 || (*s1 ==
' ')) && (!*s2 || (*s2 ==
' '))) {
54 if(*s2 < *s1) {
return(1); }
55 if(*s1 < *s2) {
return(-1); }
71 if (source[i++] ==
'\0') {
break; }
116 unsigned char *p = (
unsigned char *) b;
128 while(s[len]) { ++len; }
132 void*
umemcpy(
void *str1,
const void *str2,
long n) {
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];
203 shell::m_start->
post();
209 shell::m_stop->
post();
233 while((idx < len) && (
buf.
buf[idx] !=
' ')) {
242 const char* args = &
buf.
buf[idx+1];
247 exit_code =
witch(args);
void * umemcpy(void *str1, const void *str2, long n)
int32_t ustrncmp(const char *, const char *, uint32_t)
void atomic_printf(const char *pcString,...)
static exit_status_t motor_start(const char *args)
exit_status_t(* sys_cmd)(const char *)
#define shell_command_is(a)
exit_status_t execute_command()
static void ustrcpy(char *dest, const char *source)
static sys_cmd system_command_funcs[2]
static exit_status_t witch(const char *args)
static exit_status_t motor_stop(const char *args)
static exit_status_t jester(const char *args)
static exit_status_t doctor(const char *args)
static semaphore * m_stop
#define SYSTEM_MAX_NAME_LENGTH
void set_ps1(char *new_ps1)
virtual void toggle(pin_t pin)
static char system_command_names[2][10]
void * memset(void *b, int c, int len)
uint32_t strlen(const char *)
static semaphore * m_start