This commit is contained in:
tkl
2016-07-28 17:01:49 +02:00
parent cf7455020f
commit a27657296d
1289 changed files with 17 additions and 353134 deletions

View File

@@ -4,15 +4,11 @@
#include <stdio.h>
#include <stdlib.h>
#include "board.h"
#include "ctx.h"
#include "driver.h"
#include "board_devices.h"
#include "stack.h"
#include "queue.h"
#include "thread.h"
#include "schedule.h"
#include "isr.h"
#include "sys_tick.h"
#include "kernel.h"
#include "driver.h"
#define STACK_SIZE 256
@@ -51,8 +47,6 @@ stack_t tc_2_stack[STACK_SIZE];
struct thread_context tc_2;
int main(void)
{
board_init();
sys_tick_init(&timer_1);
open(&uart_1);
thread_create(&tc_1, tc_1_stack, STACK_SIZE, task1, NULL, THREAD_PRIO_LOW);
thread_create(&tc_2, tc_2_stack, STACK_SIZE, task2, NULL, THREAD_PRIO_LOW);