pwm test app

This commit is contained in:
tkl
2016-08-08 11:19:08 +02:00
parent b038d17abe
commit 43d07d71b5
7 changed files with 72 additions and 10 deletions

View File

@@ -23,9 +23,9 @@ struct shell_object {
struct shell_object shell_object;
#define RX_STACK_SIZE 256
stack_t rx_stack[RX_STACK_SIZE];
struct thread_context rx_thread;
#define TH_STACK_SIZE 256
stack_t th_stack[TH_STACK_SIZE];
struct thread_context th_ctx;
static void parse(const char *buffer, unsigned int len)
{
@@ -71,7 +71,7 @@ int shell_init(const struct driver *shell_device)
return -1;
list_init(&shell_object.command_list);
shell_object.shell_device = shell_device;
thread_create(&rx_thread, rx_stack, RX_STACK_SIZE, rx_func, NULL, THREAD_PRIO_LOW);
thread_create(&th_ctx, th_stack, TH_STACK_SIZE, rx_func, NULL, THREAD_PRIO_LOW);
return 0;
}