Enable test thread
This commit is contained in:
parent
776fc29107
commit
3a0eb96f70
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue