aboutsummaryrefslogtreecommitdiff
path: root/src/SPI.cpp
Commit message (Collapse)AuthorAge
* merge local_wifi (#1516)Arisotura2022-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt at betterer wifi * add preliminary sync mechanism * fix gaps in wifi implementation * move local-MP comm to its own module instead of cramping Platform.cpp * remove some stupid cruft * as you wish, Sorer (starting work on shared-memory system) * shared-memory IPC that actually works (albeit Windows-only for now) * shut up logging from NULL writes on ARM7 (ffs Nintendo learn to code) * get this somewhat good * leave client sync mode when host deauths. makes download play actually work. * start implementing MP-comm error handling * * add MP-reply error counters * feeble attempt at fixing slowdown/desync/etc problems * somewhat better exchange/sync method * * when entering power-saving mode, be sure to finish transferring the current frame first * fix misc bug due to old cruft leftover makes for a more stable connection * remove a bunch of cruft * set wifi time interval to 34 cycles instead of 33. games seem sensitive to the general timing of wifi vs the rest of the system, and this seems to make things run better, atleast until I rewrite this to use a proper scheduler. * more graceful handling of disconnects * deal with FIFO overflow more gracefully * BAHAHAHAHAHAHAHAHHHH THE SNEAKY BASTARDS so, when the DS receives a beacon with the right BSSID that beacon's timestamp is copied to USCOUNTER * attempt at making the connection process smoother for weird games * * begin adding POWCNT2, only applies to wifi for now * begin work on wifi scheduler * implement the shitty timers * add the RF wakeup thing * begin work on receiving frames. for now it can just receive melonAP beacons, but hey, it's a start. * add enough TX functionality that online wifi is a possibility again. * there are problems with this scheduler thing. committing it anyway * kind of a rollback... we're gonna work out a compromise on this, I guess * don't transmit shit if RXCNT.bit15 isn't set * move RX-finish to its own function. more accurate filtering. implement RXFILTER. * remove some cruft * fix some of the shittiness when trying to connect more than two players * fix some more shittiness * fix more wifi shittiness (mainly don't try to receive shit while sending a frame) * run wifi every 8µs. improves performance. * fix IRQ14/IRQ15 * make this work under Linux * Make it work on macOS, for now using a custom sem_timedwait implementation. If anyone knows anything about mach ports and have an idea for how to make this work using mach IPC, please do let me know. * 25ms seems like a good timeout * begin work on proper multiplayer UI shito. for now, determine a global instance ID, and derivate the system MAC from it. remove 'randomize MAC' option. * finish removing RandomizeMAC * lay groundwork for instance-unique config * work some on the UI... make it not labelled Fart * more UI work: make it explicit that some things are instance-unique * separate firmware files for multiplayer instances * make instances save to different save files, too * more UI work, make things somewhat less shitty * lay base for the multiplayer settings dialog * actually hook up most of that dialog * actually implement the fun audio settings * ensure all the wifi shit is properly savestated and reset. properly update timings for the wifi region when wifi is disabled. * add more fun labels * * ignore WEP frames if WEP is off * implement RX_LEN_CROP * fake enough of WEP processing to make Inazuma Eleven work * * do not copy more ROM banner data than actually needed * avoid trying to read out of bounds if the banner offset is bad * Fix oversight with the preferences action causing the build to fail on macOS Co-authored-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
* save WFC settings when using default firmware. fixes #1401, also fixes #1336Arisotura2022-03-22
|
* default firmware: in DSi mode, emulate more compatible DWM-W015 instead of ↵Arisotura2022-03-20
| | | | DWM-W024
* make invalid SPI memory commands return 0xFF. fixes #1366 (Dementium II ↵Arisotura2022-03-14
| | | | checks the results of RDSR, RDID and cmd 00 to determine what kind of backup memory is present)
* fix some gaps in the SPI/cart implementationsArisotura2022-03-14
|
* save battery levels to configArisotura2022-03-07
|
* Add support for changing the DS and DSi battery levelRayyan Ansari2022-03-07
| | | | | | The DS battery level is configured via the SPI Power Management Device, and the DSi's is configured via the I2C BPTWL. Add support for changing these registers and add the "Power Management" dialog in the UI.
* update copyright headersArisotura2022-01-09
|
* Custom path support (#1333)Arisotura2022-01-07
| | | | | | | also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
* add valid wifi data to the default firmwareArisotura2021-11-20
|
* move 'randomize MAC' setting to firmware settings, and add setting for ↵Arisotura2021-11-19
| | | | | | changing the MAC. make things overall betterer.
* make external-BIOS toggle also explicitly control external firmwareArisotura2021-11-18
| | | | make things a tad more consistent and explicit
* decouple more config shit from the core. bahahahArisotura2021-11-17
|
* * remove more Config dependencies from the coreArisotura2021-11-17
| | | | * also use less shitty strings
* Generate a simple non-bootable firmware when not provided. (v2) (#1175)Adrian Siekierka2021-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Generate a simple non-bootable firmware when not provided. * Expose Username and Language into settings dialog. * Add firmware overrides for more settings. Also make override optionals when a firmware is provided. * Refactor firmware settings into separate dialog. * use usernameLength instead of u16Username.length() (#3) * Fix curly braces code-style. * LoadUserSettingsFromConfig: convert from UTF-8 to UTF-16 via wstring_convert * Fix firmware username capitalization. * cleanup firmware backup logic * Put brace where it should be Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com> Co-authored-by: Filippo Scognamiglio <flscogna@gmail.com> Co-authored-by: kyandora <71771686+kyandora@users.noreply.github.com> Co-authored-by: Filippo Scognamiglio <filippo.scognamiglio@felgo.com> Co-authored-by: RSDuck <RSDuck@users.noreply.github.com> Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com>
* actually make DSi-mode direct boot work to some extentArisotura2021-08-30
|
* having fun with fatfs (#1189)Arisotura2021-08-24
| | | | * patch TSC coords in DSi mode * DSiware importer and shit
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* minor code refactoring, to simplify BizHawk support (#958)SuuperW2021-01-22
|
* make MAC randomization optionalArisotura2020-08-24
|
* NWifi: correctly determine ROM/chip/etc IDs based on hardware version (as ↵Arisotura2020-08-19
| | | | | | specified in firmware). fixes #700
* take care of some minor detailsArisotura2020-06-21
|
* make it able to switch between DS and DSi modesArisotura2020-06-01
|
* Merge remote-tracking branch 'remotes/origin/master' into melonDSiArisotura2020-05-30
|\
| * actually hook this upArisotura2020-05-17
| |
* | Merge commit '4b57416552ec2fa95216e2b044559f215723bf70' into melonDSiArisotura2020-05-30
|\|
| * update copyright yearsArisotura2020-02-14
| |
* | don't auto-patch firmware touchscreen coordinates, atleast until we find out ↵Arisotura2019-10-15
| | | | | | | | whether that causes problems in DSi mode
* | lay base for DSi-mode TSCArisotura2019-08-04
| |
* | wifi: take this shit further. complete wifi initArisotura2019-08-04
| |
* | add I2C shitoArisotura2019-06-15
|/
* Firmware backup writing now uses OpenLocalFileRafael Caetano2019-05-13
|
* Fix all -Wwrite-strings warningsCameron Cawley2019-05-04
|
* * move melon_fopen_local() to Platform.cppArisotura2019-03-27
| | | | | * make it require that the file already exist (hopefully fixing config saving bug) * finally axe melon_fopen.cpp
* also, update copyright nameArisotura2019-01-22
|
* finalize microphone code (hooked to all settings etc)StapleButter2018-12-14
| | | | also add volume setting
* add ROM #3159 to romlist.binStapleButter2018-12-12
|
* preliminary microphone code. requires an actual microphone. resulting audio ↵StapleButter2018-12-12
| | | | is farty and blargy as fuck.
* move config-file seeking code to its own thing.StapleButter2018-12-11
| | | | | look also into the same directory as melonDS. make it the preferred place for storing melonDS.ini. rewrite WinMain() wrapper.
* SPI doneStapleButter2018-10-18
|
* fixor copyright years.StapleButter2018-09-15
|
* Load bios, firmware and melonDS.ini from executable or ~/.config/melonds or ↵Zion Nimchuk2018-01-11
| | | | AppData
* clear chipselect when turning SPI off. fixes libnds bugs.StapleButter2017-12-19
|
* add support for SPI shutdown, btwStapleButter2017-09-21
|
* * allow 128KB firmwares (DSi/3DS dumps)StapleButter2017-08-05
| | | | * document firmware sizes better
* implement transfer delays for both SPI bussesStapleButter2017-07-15
| | | | also make microphone input return 0x800
* * implement firmware saving for user settingsStapleButter2017-06-26
| | | | * fix bug with SPI commands that have no parameters
* quick hack: Tab toggles framerate limit.StapleButter2017-05-25
| | | | misc little fix.
* (untested yet) code for sending and receiving packets via socketsStapleButter2017-05-11
| | | | MAC randomization
* * stub more wifi crapStapleButter2017-04-07
| | | | | * louder sound * misc fixes