openwch/ch32v307

How can i use uart 4,5,6,7,8?

Llahainur opened this issue · 1 comments

USART_IT_CONFIG function contains a comment "USARTx - where x can be 1, 2, 3 to select the USART peripheral."
May i use it to configure uart >3? How can i at all use uart>3 if library supports only 1-3?

The problem was that usart 1-3 has USART3_IRQHandler() handler, but usart >3 handler is UART4_IRQHandler(). The same thing with TIM handlers: some of them are TIM2_IRQHandler() others are specialized like TIM1_UP_IRQHandler()