Page 224 - MDP2022-2
P. 224
if(sendData_3 == 'd')
{
HAL_GPIO_WritePin(GPIOG,GPIO_PIN_0,GPIO_PIN_R
ESET);
i=1;
}
}
outing_2 = outing;
/*HAL_UART_Receive(&huart4, receiver, 1, 10);
if(receiver[0] == '1') {=
HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_0);
}
else if(receiver[0] == '2'){
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_0,1);
}*/
}
/* USER CODE END 3 */
}
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;