pwm test app
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user