Hey guys,
so i created this code
ignoring the while loop and the other functions. I would like to simplify my char string and somehow turn it into a function. I'm using putty to...
Simplifying my USART code [ char string]
so i created this code
Code (Text):
- int main(void)
- {
- // PLL_Config();
- SystemCoreClockUpdate();
- char string[]= "Hello World";
- int i=0;
- while(!(USART_MODULE->SR&USART_SR_RXNE))
- for (i=0; i<11; i++)
- {
- init_USART();
- send_usart(string[i]);
- }
- while (string[i]!=0);
Simplifying my USART code [ char string]