pwm test app
This commit is contained in:
35
source/test/pwm/main.c
Normal file
35
source/test/pwm/main.c
Normal 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
4
source/test/pwm/pwm.mk
Normal file
@@ -0,0 +1,4 @@
|
||||
CHECK_FOLDER += source/test/pwm
|
||||
SUB_FOLDER += source/test/pwm
|
||||
INCLUDES += source/test/pwm
|
||||
DOC_SRC += source/test/pwm
|
Reference in New Issue
Block a user