IvanVeloz / ndsntp

NTP client for the Nintendo DS
MIT License
4 stars 0 forks source link

Move coreSNTP code into ARM7 processor #12

Closed IvanVeloz closed 2 months ago

IvanVeloz commented 2 months ago

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).

IvanVeloz commented 2 months ago

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.

Will not be implemented as described.