35 lines
567 B
C
35 lines
567 B
C
|
/*
|
||
|
* shell.c
|
||
|
*
|
||
|
* Created on: Aug 1, 2016
|
||
|
* Author: tkl
|
||
|
*/
|
||
|
|
||
|
#include <stddef.h>
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
#include "stack.h"
|
||
|
#include "queue.h"
|
||
|
#include "driver.h"
|
||
|
#include "kernel.h"
|
||
|
|
||
|
#define RX_STACK_SIZE 256
|
||
|
stack_t rx_stack[RX_STACK_SIZE];
|
||
|
struct thread_context rx_thread;
|
||
|
|
||
|
void rx_func(void *arg)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
int shell_init(const struct driver *shell_device)
|
||
|
{
|
||
|
thread_create(&rx_thread, rx_stack, RX_STACK_SIZE, rx_func, NULL, THREAD_PRIO_LOW);
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
int shell_add_command(const char *command, const void *callback, const void *param)
|
||
|
{
|
||
|
return -1;
|
||
|
}
|