comparison Small_CPU/Src/baseCPU2.c @ 801:ff66b41d6fe4

Update RTE version number
author Ideenmodellierer
date Thu, 10 Aug 2023 21:24:04 +0200
parents dfdfea8897f3
children 40e951cfa443
comparison
equal deleted inserted replaced
800:f8a112c5e71d 801:ff66b41d6fe4
164 164
165 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000. 165 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000.
166 // See CPU2-RTE.ld 166 // See CPU2-RTE.ld
167 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { 167 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= {
168 .versionFirst = 3, 168 .versionFirst = 3,
169 .versionSecond = 1, 169 .versionSecond = 2,
170 .versionThird = 0, 170 .versionThird = 0,
171 .versionBeta = 0, 171 .versionBeta = 0,
172 172
173 /* 4 bytes with trailing 0 */ 173 /* 4 bytes with trailing 0 */
174 .signature = "mh", 174 .signature = "mh",
420 GPIO_Power_MainCPU_ON(); 420 GPIO_Power_MainCPU_ON();
421 } 421 }
422 SPI_synchronize_with_Master(); 422 SPI_synchronize_with_Master();
423 MX_DMA_Init(); 423 MX_DMA_Init();
424 MX_SPI1_Init(); 424 MX_SPI1_Init();
425 externalInterface_SwitchUART(externalInterface_GetUARTProtocol());
426 SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */ 425 SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */
427 Scheduler_Request_sync_with_SPI(SPI_SYNC_METHOD_HARD); 426 Scheduler_Request_sync_with_SPI(SPI_SYNC_METHOD_HARD);
428 EXTI_Test_Button_Init(); 427 EXTI_Test_Button_Init();
429 global.mode = MODE_SURFACE; 428 global.mode = MODE_SURFACE;
430 break; 429 break;
493 EXTI_Wakeup_Button_Init(); 492 EXTI_Wakeup_Button_Init();
494 NOT_USED_AT_THE_MOMENT_scheduleSleepMode(); 493 NOT_USED_AT_THE_MOMENT_scheduleSleepMode();
495 */ 494 */
496 495
497 EXTI_Test_Button_DeInit(); 496 EXTI_Test_Button_DeInit();
497 externalInterface_SwitchUART(0);
498 externalInterface_SwitchPower33(false); 498 externalInterface_SwitchPower33(false);
499 if (hasExternalClock()) 499 if (hasExternalClock())
500 SystemClock_Config_HSI(); 500 SystemClock_Config_HSI();
501 sleep_prepare(); 501 sleep_prepare();
502 502