Mercurial > public > ostc4
comparison Discovery/Src/ostc.c @ 879:fe955104901c Evo_2_23
new bluetooth work, bootloader work
| author | heinrichsweikamp |
|---|---|
| date | Thu, 29 Aug 2024 12:03:10 +0200 |
| parents | bc6c90e20d9e |
| children | 8d3f3a635397 |
comparison
equal
deleted
inserted
replaced
| 878:6b06143cbfea | 879:fe955104901c |
|---|---|
| 136 DISPLAY_RESETB_GPIO_ENABLE(); | 136 DISPLAY_RESETB_GPIO_ENABLE(); |
| 137 EXTFLASH_CSB_GPIO_ENABLE(); | 137 EXTFLASH_CSB_GPIO_ENABLE(); |
| 138 SMALLCPU_CSB_GPIO_ENABLE(); | 138 SMALLCPU_CSB_GPIO_ENABLE(); |
| 139 OSCILLOSCOPE_GPIO_ENABLE(); | 139 OSCILLOSCOPE_GPIO_ENABLE(); |
| 140 OSCILLOSCOPE2_GPIO_ENABLE(); | 140 OSCILLOSCOPE2_GPIO_ENABLE(); |
| 141 BLE_UBLOX_DSR_GPIO_ENABLE(); | |
| 141 | 142 |
| 142 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; | 143 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; |
| 143 GPIO_InitStruct.Pull = GPIO_PULLUP; | 144 GPIO_InitStruct.Pull = GPIO_PULLUP; |
| 144 GPIO_InitStruct.Speed = GPIO_SPEED_LOW; | 145 GPIO_InitStruct.Speed = GPIO_SPEED_LOW; |
| 145 | 146 |
| 228 GPIO_InitStruct.Pull = GPIO_NOPULL; | 229 GPIO_InitStruct.Pull = GPIO_NOPULL; |
| 229 GPIO_InitStruct.Speed = GPIO_SPEED_LOW; | 230 GPIO_InitStruct.Speed = GPIO_SPEED_LOW; |
| 230 GPIO_InitStruct.Pin = BLE_NENABLE_PIN; | 231 GPIO_InitStruct.Pin = BLE_NENABLE_PIN; |
| 231 HAL_GPIO_Init(BLE_NENABLE_GPIO_PORT, &GPIO_InitStruct); | 232 HAL_GPIO_Init(BLE_NENABLE_GPIO_PORT, &GPIO_InitStruct); |
| 232 HAL_GPIO_WritePin(BLE_NENABLE_GPIO_PORT,BLE_NENABLE_PIN,GPIO_PIN_RESET); | 233 HAL_GPIO_WritePin(BLE_NENABLE_GPIO_PORT,BLE_NENABLE_PIN,GPIO_PIN_RESET); |
| 234 | |
| 235 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; | |
| 236 GPIO_InitStruct.Pull = GPIO_PULLDOWN; | |
| 237 GPIO_InitStruct.Speed = GPIO_SPEED_LOW; | |
| 238 GPIO_InitStruct.Pin = BLE_UBLOX_DSR_PIN; | |
| 239 HAL_GPIO_Init(BLE_UBLOX_DSR_GPIO_PORT, &GPIO_InitStruct); | |
| 240 HAL_GPIO_WritePin(BLE_UBLOX_DSR_GPIO_PORT,BLE_UBLOX_DSR_PIN,GPIO_PIN_RESET); | |
| 233 } | 241 } |
| 234 | 242 |
| 235 | 243 |
| 236 void MX_Bluetooth_PowerOff(void) | 244 void MX_Bluetooth_PowerOff(void) |
| 237 { | 245 { |
| 238 GPIO_InitTypeDef GPIO_InitStruct; | 246 GPIO_InitTypeDef GPIO_InitStruct; |
| 239 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; | 247 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; |
| 240 GPIO_InitStruct.Pin = BLE_NENABLE_PIN; | 248 GPIO_InitStruct.Pin = BLE_NENABLE_PIN; |
| 241 GPIO_InitStruct.Pull = GPIO_NOPULL; | 249 GPIO_InitStruct.Pull = GPIO_NOPULL; |
| 242 HAL_GPIO_Init(BLE_NENABLE_GPIO_PORT, &GPIO_InitStruct); | 250 HAL_GPIO_Init(BLE_NENABLE_GPIO_PORT, &GPIO_InitStruct); |
| 251 HAL_GPIO_WritePin(BLE_UBLOX_DSR_GPIO_PORT,BLE_UBLOX_DSR_PIN,GPIO_PIN_RESET); | |
| 243 } | 252 } |
| 244 | 253 |
| 245 | 254 |
| 246 void MX_SmallCPU_Reset_To_Boot(void) | 255 void MX_SmallCPU_Reset_To_Boot(void) |
| 247 { | 256 { |
