comparison BootLoader/Src/ostc_mini.c @ 1044:9d9d506a82d3 BootloaderOstc5

Bugfix BT init sequence: Some older steps which were related to OSTC were deactivated (to be removed) and a command for the second echo step was missing. in addition two stps for switching the power of the modul before the sequence starts have been added to have a defined starting point.
author Ideenmodellierer
date Sun, 02 Nov 2025 19:30:58 +0100
parents aeafa631147d
children 493a5903ec20
comparison
equal deleted inserted replaced
1016:0dd92e9b70a2 1044:9d9d506a82d3
236 } 236 }
237 237
238 238
239 void MX_Bluetooth_PowerOff(void) 239 void MX_Bluetooth_PowerOff(void)
240 { 240 {
241 GPIO_InitTypeDef GPIO_InitStruct; 241 HAL_GPIO_WritePin(BLE_NENABLE_GPIO_PORT,BLE_NENABLE_PIN,GPIO_PIN_SET);
242 HAL_Delay(10);
243 GPIO_InitTypeDef GPIO_InitStruct;
242 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 244 GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
243 GPIO_InitStruct.Pin = BLE_NENABLE_PIN; 245 GPIO_InitStruct.Pin = BLE_NENABLE_PIN;
244 GPIO_InitStruct.Pull = GPIO_NOPULL; 246 GPIO_InitStruct.Pull = GPIO_NOPULL;
245 HAL_GPIO_Init(BLE_NENABLE_GPIO_PORT, &GPIO_InitStruct); 247 HAL_GPIO_Init(BLE_NENABLE_GPIO_PORT, &GPIO_InitStruct);
246 HAL_GPIO_WritePin(BLE_UBLOX_DSR_GPIO_PORT,BLE_UBLOX_DSR_PIN,GPIO_PIN_RESET); 248 HAL_GPIO_WritePin(BLE_UBLOX_DSR_GPIO_PORT,BLE_UBLOX_DSR_PIN,GPIO_PIN_RESET);