Mercurial > public > ostc4
comparison Small_CPU/Src/baseCPU2.c @ 84:e6abbef57475 kittz
Remove unusable code!!! prepare data for SPI in ONLY 1 IRQ!!!!
author | Dmitry Romanov <kitt@bk.ru> |
---|---|
date | Wed, 21 Nov 2018 10:25:15 +0300 |
parents | a6f0881074a4 |
children | 3db7389d49cc |
comparison
equal
deleted
inserted
replaced
83:ef4f45df70c1 | 84:e6abbef57475 |
---|---|
385 } | 385 } |
386 SPI_synchronize_with_Master(); | 386 SPI_synchronize_with_Master(); |
387 MX_DMA_Init(); | 387 MX_DMA_Init(); |
388 MX_SPI1_Init(); | 388 MX_SPI1_Init(); |
389 MX_EXTI_wireless_Init(); | 389 MX_EXTI_wireless_Init(); |
390 SPI_Start_single_TxRx_with_Master(); | 390 // SPI_Start_single_TxRx_with_Master(); |
391 EXTI_Test_Button_Init(); | 391 EXTI_Test_Button_Init(); |
392 | 392 |
393 /* | 393 /* |
394 uint8_t dataWireless[64]; | 394 uint8_t dataWireless[64]; |
395 while(1) | 395 while(1) |
412 GPIO_Power_MainCPU_ON(); | 412 GPIO_Power_MainCPU_ON(); |
413 SPI_synchronize_with_Master(); | 413 SPI_synchronize_with_Master(); |
414 MX_DMA_Init(); | 414 MX_DMA_Init(); |
415 MX_SPI1_Init(); | 415 MX_SPI1_Init(); |
416 // MX_EXTI_wireless_Init(); | 416 // MX_EXTI_wireless_Init(); |
417 SPI_Start_single_TxRx_with_Master(); | 417 // SPI_Start_single_TxRx_with_Master(); |
418 // EXTI_Test_Button_Init(); | 418 // EXTI_Test_Button_Init(); |
419 | 419 |
420 scheduleTestMode(); | 420 scheduleTestMode(); |
421 break; | 421 break; |
422 | 422 |
494 wireless_init(); | 494 wireless_init(); |
495 SPI_synchronize_with_Master(); | 495 SPI_synchronize_with_Master(); |
496 MX_DMA_Init(); | 496 MX_DMA_Init(); |
497 MX_SPI1_Init(); | 497 MX_SPI1_Init(); |
498 MX_EXTI_wireless_Init(); | 498 MX_EXTI_wireless_Init(); |
499 SPI_Start_single_TxRx_with_Master(); | 499 // SPI_Start_single_TxRx_with_Master(); |
500 | 500 |
501 // EXTILine0_Button_DeInit(); not now, later after testing | 501 // EXTILine0_Button_DeInit(); not now, later after testing |
502 break; | 502 break; |
503 } | 503 } |
504 } | 504 } |