User Activity

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if(GPIO_Pin == GPIO_PIN_10) { Switch10 = 1; HAL_GPIO_WritePin(GPIOB, GPIO_PIN_4, GPIO_PIN_SET); } if(GPIO_PIN == GPIO_PIN_11) { ...
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if(GPIO_Pin == GPIO_PIN_10) { for(volatile int j = 0; j<3000; j++) { char Txbuffer = "Read\n"; HAL_UART_Transmit_IT(&huart2, (uin...
I have assigned the string into the char array as "example\n". How do I put the "\n" character in front of the "example\n". I wanted like this "\nexample\n" on the char array