test app implementation for os

This commit is contained in:
tkl
2016-08-02 14:10:11 +02:00
parent 35af737f68
commit 1859174c9c
10 changed files with 295 additions and 14 deletions

39
source/test/shell/main.c Normal file
View File

@@ -0,0 +1,39 @@
/*
* main.c
*
* Created on: Aug 2, 2016
* Author: tkl
*/
#include <stdbool.h>
#include "driver.h"
#include "board.h"
#include "stack.h"
#include "queue.h"
#include "kernel.h"
#include "driver.h"
#include "list.h"
#include "shell.h"
void *uname_fct(const char *line)
{
if(NULL == line)
return NULL;
return NULL;
}
static struct command cmd = {
.command = "uname",
.command_callback = uname_fct
};
int main(void)
{
shell_init(&uart_1);
shell_add_command(&cmd);
schedule_start();
return 0;
}

View File

@@ -0,0 +1,4 @@
CHECK_FOLDER += source/test/shell
SUB_FOLDER += source/test/shell
INCLUDES += source/test/shell
DOC_SRC += source/test/shell

3
source/test/test.mk Normal file
View File

@@ -0,0 +1,3 @@
ifeq ($(TEST_APP), shell)
include source/test/shell/shell.mk
endif