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

35
source/test/pwm/main.c Normal file
View File

@@ -0,0 +1,35 @@
/*
* 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"
#define TH_STACK_SIZE 256
stack_t th_stack[TH_STACK_SIZE];
struct thread_context th_ctx;
static void th_func(void *arg)
{
while(1) {
}
}
int main(void)
{
thread_create(&th_ctx, th_stack, TH_STACK_SIZE, th_func, NULL, THREAD_PRIO_LOW);
schedule_start();
return 0;
}

4
source/test/pwm/pwm.mk Normal file
View File

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

View File

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