Question
Hints for detecting USART-input on tty - STM32F411CE* - weact* - Linux
Given:
void USART2_Init (void)
{
RCC->APB1ENR |= (1<<17);
RCC->AHB1ENR |= (1<<0);
GPIOA-> AFR[0] = (7<<8);
GPIOA->MODER |= (1<<5);
USART2->BRR = 0x0683; // 9600 at 16MHz
USART2->CR1 |= (1<<3);
USART2->CR1 |= (1<<13);
}
void USART2_Write(int ch)
{
while(!(USART2-> SR & (1<<7)));
USART2->DR = (ch & 0xFF);
}
No input data on /dev/tty* -
Are there hints/commands for generating input/later output data on tty* ?
Greetings
TIMBO
