comparison Small_CPU/Src/baseCPU2.c @ 134:0586ae83a243 FlipDisplay

Removed cyclic (by timer) send on slave side
author Ideenmodellierer
date Tue, 19 Feb 2019 18:16:59 +0100
parents 6347a86caa18
children ee744c7160ce
comparison
equal deleted inserted replaced
133:acc98f5bd8c4 134:0586ae83a243
162 162
163 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000. 163 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000.
164 // See CPU2-RTE.ld 164 // See CPU2-RTE.ld
165 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { 165 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= {
166 .versionFirst = 1, 166 .versionFirst = 1,
167 .versionSecond = 5, 167 .versionSecond = 6,
168 .versionThird = 1, 168 .versionThird = 0,
169 .versionBeta = 0, 169 .versionBeta = 0,
170 170
171 /* 4 bytes with trailing 0 */ 171 /* 4 bytes with trailing 0 */
172 .signature = "mh", 172 .signature = "mh",
173 173
381 } 381 }
382 SPI_synchronize_with_Master(); 382 SPI_synchronize_with_Master();
383 MX_DMA_Init(); 383 MX_DMA_Init();
384 MX_SPI1_Init(); 384 MX_SPI1_Init();
385 MX_EXTI_wireless_Init(); 385 MX_EXTI_wireless_Init();
386 // SPI_Start_single_TxRx_with_Master(); 386 SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */
387 EXTI_Test_Button_Init(); 387 EXTI_Test_Button_Init();
388 388
389 /* 389 /*
390 uint8_t dataWireless[64]; 390 uint8_t dataWireless[64];
391 while(1) 391 while(1)
1127 if(ticks100ms<100){ 1127 if(ticks100ms<100){
1128 ticks100ms++; 1128 ticks100ms++;
1129 }else 1129 }else
1130 { 1130 {
1131 ticks100ms=0; 1131 ticks100ms=0;
1132 SPI_Start_single_TxRx_with_Master();
1133 } 1132 }
1134 } 1133 }
1135 /** 1134 /**
1136 * @} 1135 * @}
1137 */ 1136 */