Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

Commit

Permalink
riot-basics/drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Mar 26, 2018
1 parent 3f132aa commit 5f597e8
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
11 changes: 11 additions & 0 deletions riot-basics/drivers/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
APPLICATION=drivers-application

BOARD ?= b-l072z-lrwan1

USEMODULE += xtimer

DEVELHELP ?= 1

RIOTBASE ?= $(CURDIR)/../../../RIOT

include $(RIOTBASE)/Makefile.include
50 changes: 50 additions & 0 deletions riot-basics/drivers/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#include <stdio.h>
#include <string.h>

#include "xtimer.h"
#include "thread.h"

#include "board.h"

#include "hts221.h"
#include "hts221_params.h"

#include "lsm6dsl.h"
#include "lsm6dsl_params.h"

static char stack1[THREAD_STACKSIZE_MAIN];
static char stack2[THREAD_STACKSIZE_MAIN];

static void *thread1_handler(void *arg)
{
(void) arg;

return NULL;
}

static void *thread2_handler(void *arg)
{
(void) arg;

return NULL;
}


int main(void)
{
puts("RTC alarm RIOT application");

thread_create(stack1, sizeof(stack1),
THREAD_PRIORITY_MAIN - 1,
0,
thread1_handler,
NULL, "thread1");

thread_create(stack2, sizeof(stack2),
THREAD_PRIORITY_MAIN - 1,
0,
thread2_handler,
NULL, "thread2");

return 0;
}

0 comments on commit 5f597e8

Please sign in to comment.