How to set dual UART on Telink Mesh TLSR8258 SDK ?
* Current uart_init() function is below.
How to add additional UART ?
void user_uart_init(void)
{
uart_recbuff_init((unsigned short *)(&T_rxdata_buf), sizeof(T_rxdata_buf), (u8 *)(&T_txdata_buf));
uart_gpio_set(GPIO_PD3, GPIO_PD7);
uart_reset();
#if (CLOCK_SYS_CLOCK_HZ == 16000000)
uart_init(9, 13, PARITY_NONE, STOP_BIT_ONE);
#elif (CLOCK_SYS_CLOCK_HZ == 24000000)
uart_init(12, 15, PARITY_NONE, STOP_BIT_ONE);
#endif
uart_dma_enable(1, 1);
irq_set_mask(FLD_IRQ_DMA_EN);
dma_chn_irq_enable(FLD_DMA_CHN_UART_RX | FLD_DMA_CHN_UART_TX, 1);
reg_dma_rx_rdy0 = FLD_DMA_CHN_UART_RX | FLD_DMA_CHN_UART_TX;
}
Hi,
TLSR8258 do not support two hard uart,if you need uart log printf you can enable IO simulation serial printing .
@TL_Soyo
How to use IO simulation ?
Do you have a chip that supporting two hard uart ?
Telink Mesh SDK does not support simulated serial port printing. you Can port the simulated serial port printing from the Sigmesh SDK
for two hard uart ,please refer to Tls9xxx series http://wiki.telink-semi.cn/wiki/chip-series/TLSR921x-Series/
@JaeYong Lee
Hi,
TLSR8258 do not support two hard uart,if you need uart log printf you can enable IO simulation serial printing .
@TL_Soyo
How to use IO simulation ?
Do you have a chip that supporting two hard uart ?
Telink Mesh SDK does not support simulated serial port printing. you Can port the simulated serial port printing from the Sigmesh SDK
for two hard uart ,please refer to Tls9xxx series http://wiki.telink-semi.cn/wiki/chip-series/TLSR921x-Series/
@JaeYong Lee