uart - rx in it mode, tx in blocking mode

This commit is contained in:
tkl
2016-08-17 21:51:00 +02:00
parent 3cafc5aa92
commit bec6f26366
4 changed files with 105 additions and 3 deletions

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

@@ -0,0 +1,43 @@
/*
* 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)
{
board_init();
shell_init(&uart_1);
shell_add_command(&cmd);
schedule_start();
return 0;
}

View File

@@ -0,0 +1 @@
SRC_DIR += source/test/shell