ataradov / usb-sniffer-lite

A simple USB sniffer based on Raspberry Pi RP2040
BSD 3-Clause "New" or "Revised" License
547 stars 49 forks source link

A QUESTION ABOUT C CODE #13

Open 1250364116 opened 5 months ago

1250364116 commented 5 months ago

Hi, I have read your code and learned a lot about raspbery rp2040 capabilities by analyzing your code. I admire your great work it is very fantastic. as I understood you are capturing data using pio and then processing the captured data to show everything on the display. all of this process is in a while loop which is running by core1. the strange thing for me is what your core0 is running in the while(1) loop. what is the purpose of this section, while everything we need to capture the data is running on core1?

ataradov commented 5 months ago

Core 0 handles all the UI and USB communication while Core 1 does the capture and nothing else.