diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2017-11-24 22:23:27 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2017-11-24 22:23:27 +0100 |
commit | 93dd54ecdcfce8ad063a4d951473f110e15c28df (patch) | |
tree | b6e47518c4a86ce80b14dae5d56af7dd52f5a01a /demos/TIVA/RT-TM4C123G-LAUNCHPAD | |
parent | 77bf52e0428392acc83bc12c4699b61dae43467e (diff) | |
download | ChibiOS-Contrib-93dd54ecdcfce8ad063a4d951473f110e15c28df.tar.gz ChibiOS-Contrib-93dd54ecdcfce8ad063a4d951473f110e15c28df.tar.bz2 ChibiOS-Contrib-93dd54ecdcfce8ad063a4d951473f110e15c28df.zip |
Fixed compile errors in demos
Diffstat (limited to 'demos/TIVA/RT-TM4C123G-LAUNCHPAD')
-rw-r--r-- | demos/TIVA/RT-TM4C123G-LAUNCHPAD/Makefile | 4 | ||||
-rw-r--r-- | demos/TIVA/RT-TM4C123G-LAUNCHPAD/chconf.h | 10 | ||||
-rw-r--r-- | demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c | 6 |
3 files changed, 17 insertions, 3 deletions
diff --git a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/Makefile b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/Makefile index b393902..7c0ab70 100644 --- a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/Makefile +++ b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/Makefile @@ -99,7 +99,9 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk # Other files (optional). -include $(CHIBIOS)/test/rt/test.mk +include $(CHIBIOS)/test/lib/test.mk +include $(CHIBIOS)/test/rt/rt_test.mk +include $(CHIBIOS)/test/oslib/oslib_test.mk # Define linker script file here LDSCRIPT= $(STARTUPLD)/TM4C123xH6.ld diff --git a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/chconf.h b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/chconf.h index 0d24275..9c9f341 100644 --- a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/chconf.h +++ b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/chconf.h @@ -183,6 +183,16 @@ #define CH_CFG_USE_MUTEXES TRUE /** + * @brief Enables recursive behavior on mutexes. + * @note Recursive mutexes are heavier and have an increased + * memory footprint. + * + * @note The default is @p FALSE. + * @note Requires @p CH_CFG_USE_MUTEXES. + */ +#define CH_CFG_USE_MUTEXES_RECURSIVE FALSE + +/** * @brief Conditional Variables APIs. * @details If enabled then the conditional variables APIs are included * in the kernel. diff --git a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c index 2872f89..7feea14 100644 --- a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c +++ b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c @@ -16,7 +16,8 @@ #include "ch.h" #include "hal.h" -#include "ch_test.h" +#include "rt_test_root.h" +#include "oslib_test_root.h" typedef struct led_config { @@ -68,7 +69,8 @@ int main(void) sdStart(&SD1, NULL); if (!palReadLine(LINE_SW2)) { - test_execute((BaseSequentialStream *)&SD1); + test_execute((BaseSequentialStream *)&SD1, &rt_test_suite); + test_execute((BaseSequentialStream *)&SD1, &oslib_test_suite); } ledRed.line = LINE_LED_RED; |