Hi,
this is my code right now, there is one UART Rx interrupt ,and the main loop use it:
Because pico has two UARTS, Now I want to start another UART Rx interrupt,and I hope the second thread can utilize this new interrupt.
So I don't know if pico can support this and how to write the code.
Could you give me some suggestions?
Thank you!
this is my code right now, there is one UART Rx interrupt ,and the main loop use it:
Code:
_thread.start_new_thread(uart1_read_sensordata,())uart0_pc.irq(handler = uart_callback, trigger = UART.IRQ_RXIDLE, hard = False)def uart1_read_sensordata(): something....while True: if interrupt_flag is 1: doing something....So I don't know if pico can support this and how to write the code.
Could you give me some suggestions?
Thank you!
Statistics: Posted by keepzen — Wed Mar 19, 2025 8:55 am