Mercurial > public > ostc4
diff Small_CPU/Src/baseCPU2.c @ 207:b95741467355 ImprovmentSPI
Introduce scheduler function
The first implementation was only focussed on doing a hard sync and the new one uses an interface instead of global variables
author | ideenmodellierer |
---|---|
date | Sun, 24 Mar 2019 22:53:17 +0100 |
parents | 9baecc0c24b2 |
children | e4207f0aaa4b |
line wrap: on
line diff
--- a/Small_CPU/Src/baseCPU2.c Sun Mar 24 22:51:15 2019 +0100 +++ b/Small_CPU/Src/baseCPU2.c Sun Mar 24 22:53:17 2019 +0100 @@ -379,7 +379,7 @@ MX_DMA_Init(); MX_SPI1_Init(); SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */ - dohardspisync = 1; + Scheduler_Request_sync_with_SPI(SPI_SYNC_METHOD_HARD); EXTI_Test_Button_Init(); global.mode = MODE_SURFACE; break;