aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/TIVA
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2015-08-24 15:53:16 +0300
committerbarthess <barthess@yandex.ru>2015-08-24 15:53:16 +0300
commitc7b566b9e0c376e4caacacb2e68b072a77b42deb (patch)
tree4e5668c250e85cff0a918c54ba09cf97fe3a5b4c /testhal/TIVA
parent1baa777a7e3218c15ca6782fd9174abcec4e3f9e (diff)
downloadChibiOS-Contrib-c7b566b9e0c376e4caacacb2e68b072a77b42deb.tar.gz
ChibiOS-Contrib-c7b566b9e0c376e4caacacb2e68b072a77b42deb.tar.bz2
ChibiOS-Contrib-c7b566b9e0c376e4caacacb2e68b072a77b42deb.zip
TIVA. Fixed warnings about incorrect thread functions declaration.
Diffstat (limited to 'testhal/TIVA')
-rw-r--r--testhal/TIVA/TM4C123x/SPI/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/testhal/TIVA/TM4C123x/SPI/main.c b/testhal/TIVA/TM4C123x/SPI/main.c
index 5ccab55..f779ad3 100644
--- a/testhal/TIVA/TM4C123x/SPI/main.c
+++ b/testhal/TIVA/TM4C123x/SPI/main.c
@@ -51,7 +51,7 @@ static const SPIConfig ls_spicfg =
* SPI bus contender 1.
*/
static THD_WORKING_AREA(spi_thread_1_wa, 256);
-static msg_t spi_thread_1(void *p)
+static THD_FUNCTION(spi_thread_1, p)
{
(void)p;
chRegSetThreadName("SPI thread 1");
@@ -65,14 +65,13 @@ static msg_t spi_thread_1(void *p)
spiUnselect(&SPID1); /* Slave Select de-assertion. */
spiReleaseBus(&SPID1); /* Ownership release. */
}
- return 0;
}
/*
* SPI bus contender 2.
*/
static THD_WORKING_AREA(spi_thread_2_wa, 256);
-static msg_t spi_thread_2(void *p)
+static THD_FUNCTION(spi_thread_2, p)
{
(void)p;
chRegSetThreadName("SPI thread 2");
@@ -86,7 +85,6 @@ static msg_t spi_thread_2(void *p)
spiUnselect(&SPID1); /* Slave Select de-assertion. */
spiReleaseBus(&SPID1); /* Ownership release. */
}
- return 0;
}
/*