Enable test thread

This commit is contained in:
Fabio Utzig 2015-05-14 23:05:55 -03:00
parent 776fc29107
commit 3a0eb96f70
2 changed files with 4 additions and 3 deletions

View File

@ -92,7 +92,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
# Other files (optional).
#include $(CHIBIOS)/test/rt/test.mk
include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here
LDSCRIPT= $(STARTUPLD)/NRF51822.ld
@ -106,6 +106,7 @@ CSRC = $(STARTUPSRC) \
$(HALSRC) \
$(PLATFORMSRC) \
$(BOARDSRC) \
$(TESTSRC) \
main.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global

View File

@ -16,6 +16,7 @@
#include "ch.h"
#include "hal.h"
#include "test.h"
/*
* Application entry point.
@ -34,8 +35,7 @@ int main(void) {
sdStart(&SD1, NULL);
chSequentialStreamWrite(&SD1, (const uint8_t *)"***\r\n", 5);
//chSequentialStreamWrite(&SD1, (const uint8_t *)"*", 1);
TestThread(&SD1);
while (1) {
NRF_GPIO->OUTCLR = (uint32_t) 1 << 18;
chThdSleepMilliseconds(500);