The ARM7 processor has direct access to the WiFi and RTC functions. It naturally makes more sense to run coreSNTP there.
The reason is that right now we the SntpSetTime callback uses a FIFO to send data to the ARM7, and that means our port of coreSNTP might not be portable to othe NDS homebrew that relies on all eight user FIFOs.
By moving coreSNTP to the ARM7 processor, the user gets the FIFO back and is free to architect the communication necessary to trigger the time synchronization (instead of us hardcoding and taking over one of the FIFOs).
Turns out all of the network library (POSIX etc.) lives in the ARM9 processor. An alternative to a FIFO is placing data in shared memory and polling it.
The ARM7 processor has direct access to the WiFi and RTC functions. It naturally makes more sense to run coreSNTP there.
The reason is that right now we the
SntpSetTime
callback uses a FIFO to send data to the ARM7, and that means our port of coreSNTP might not be portable to othe NDS homebrew that relies on all eight user FIFOs.By moving coreSNTP to the ARM7 processor, the user gets the FIFO back and is free to architect the communication necessary to trigger the time synchronization (instead of us hardcoding and taking over one of the FIFOs).