comparison Small_CPU/Src/baseCPU2.c @ 900:6a7701f66b16 Evo_2_23

minor: LED/Vibration behavior on wake-up
author heinrichsweikamp
date Tue, 01 Oct 2024 14:18:21 +0200
parents 2225c467f1e9
children 0f2e5a166d40
comparison
equal deleted inserted replaced
899:2225c467f1e9 900:6a7701f66b16
415 GPIO_Power_MainCPU_ON(); 415 GPIO_Power_MainCPU_ON();
416 416
417 GPIO_LED_GREEN_OFF(); 417 GPIO_LED_GREEN_OFF();
418 418
419 GPIO_LED_RED_ON(); 419 GPIO_LED_RED_ON();
420 //GPIO_VIBRATION_ON(); 420 GPIO_VIBRATION_ON();
421 HAL_Delay(100); 421 HAL_Delay(100);
422 GPIO_LED_RED_OFF(); 422 GPIO_LED_RED_OFF();
423 GPIO_VIBRATION_OFF(); 423 GPIO_VIBRATION_OFF();
424 GPIO_GPS_ON();
425 GPIO_GPS_BCKP_ON();
426 } 424 }
425 GPIO_LED_RED_OFF();
426 GPIO_LED_GREEN_OFF();
427 GPIO_VIBRATION_OFF();
427 SPI_synchronize_with_Master(); 428 SPI_synchronize_with_Master();
428 MX_DMA_Init(); 429 MX_DMA_Init();
429 MX_SPI1_Init(); 430 MX_SPI1_Init();
430 SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */ 431 SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */
431 Scheduler_Request_sync_with_SPI(SPI_SYNC_METHOD_HARD); 432 Scheduler_Request_sync_with_SPI(SPI_SYNC_METHOD_HARD);
432 433
434 #ifdef ENABLE_GNSS
433 // GNSS tests 435 // GNSS tests
434 GNSS_IO_init(); 436 GNSS_IO_init();
437 GPIO_GPS_ON();
438 GPIO_GPS_BCKP_ON();
435 MX_USART6_UART_Init(); 439 MX_USART6_UART_Init();
436 GNSS_Init(&GNSS_Handle, &huart6); 440 GNSS_Init(&GNSS_Handle, &huart6);
441 #endif
437 442
438 #if 0 443 #if 0
439 HAL_Delay(1000); 444 HAL_Delay(1000);
440 GNSS_LoadConfig(&GNSS_Handle); 445 GNSS_LoadConfig(&GNSS_Handle);
441 HAL_Delay(250); 446 HAL_Delay(250);