How to determine the end of transmission UART?
When you configure your UART you need to specify not only the baudrate but also the number of bits. Your example has configured it to 7 data bits and one parity bit, thus the receiver knows that the first 8 bits can not be stop bits.