User Activity

Hi everyone!, in my prototype  i need some low and high pulse before sending uart datas.. How can i do this? I have already tried using HAL_GPIO_Write and HAL_DELAY and it is not worked.I need an advice for it.Thanks.
Kudos given to