diff 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
line wrap: on
line diff
--- a/Small_CPU/Src/baseCPU2.c	Mon Sep 30 21:56:05 2024 +0200
+++ b/Small_CPU/Src/baseCPU2.c	Tue Oct 01 14:18:21 2024 +0200
@@ -417,23 +417,28 @@
 				GPIO_LED_GREEN_OFF();
 
 				GPIO_LED_RED_ON();
-				//GPIO_VIBRATION_ON();
+				GPIO_VIBRATION_ON();
 				HAL_Delay(100);
 				GPIO_LED_RED_OFF();
 				GPIO_VIBRATION_OFF();
-				GPIO_GPS_ON();
-				GPIO_GPS_BCKP_ON();
 			}
+			GPIO_LED_RED_OFF();
+			GPIO_LED_GREEN_OFF();
+			GPIO_VIBRATION_OFF();
 			SPI_synchronize_with_Master();
 			MX_DMA_Init();
 			MX_SPI1_Init();
 			SPI_Start_single_TxRx_with_Master(); /* be prepared for the first data exchange */
 			Scheduler_Request_sync_with_SPI(SPI_SYNC_METHOD_HARD);
 
+#ifdef ENABLE_GNSS
 			// GNSS tests
 			GNSS_IO_init();
+			GPIO_GPS_ON();
+			GPIO_GPS_BCKP_ON();
 			MX_USART6_UART_Init();
 			GNSS_Init(&GNSS_Handle, &huart6);
+#endif
 
 #if 0
 			HAL_Delay(1000);