From e6fbbc4da8ddf97e053651ad3d38802429562a23 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 4 Nov 2017 16:03:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10939 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F7xx/SPI/main.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'testhal/STM32/STM32F7xx/SPI/main.c') diff --git a/testhal/STM32/STM32F7xx/SPI/main.c b/testhal/STM32/STM32F7xx/SPI/main.c index c9bc3696e..411020808 100644 --- a/testhal/STM32/STM32F7xx/SPI/main.c +++ b/testhal/STM32/STM32F7xx/SPI/main.c @@ -167,25 +167,15 @@ int main(void) { /* * Starting the transmitter and receiver threads. */ -// chThdCreateStatic(spi_thread_1_wa, sizeof(spi_thread_1_wa), -// NORMALPRIO + 1, spi_thread_1, NULL); -// chThdCreateStatic(spi_thread_2_wa, sizeof(spi_thread_2_wa), -// NORMALPRIO + 1, spi_thread_2, NULL); + chThdCreateStatic(spi_thread_1_wa, sizeof(spi_thread_1_wa), + NORMALPRIO + 1, spi_thread_1, NULL); + chThdCreateStatic(spi_thread_2_wa, sizeof(spi_thread_2_wa), + NORMALPRIO + 1, spi_thread_2, NULL); /* * Normal main() thread activity, in this demo it does nothing. */ - uint8_t byte = 0x55; while (true) { chThdSleepMilliseconds(500); - spiStart(&SPID2, &hs_spicfg); - - spiSelect(&SPID2); - spiSend(&SPID2, 1, &byte); - spiUnselect(&SPID2); - - spiSelect(&SPID2); - spiSend(&SPID2, 1, &byte); - spiUnselect(&SPID2); } } -- cgit v1.2.3