261 Commits

Author SHA1 Message Date
Wolfvak
2f64a8046a - compile with size optimizations, reduces inst cache pressure
- removed most of lodepng's optional features
- lodepng now uses the already existing CRC32 code instead of using its own copy
- fixed GIC interrupt priority
2019-06-03 02:28:24 +02:00
d0k3
ff9fde1561 With shell closed, use the LED to signal finished operations 2019-06-03 02:27:44 +02:00
d0k3
85a189b3b6 Move testing stuff to its own menu entry 2019-06-03 02:27:44 +02:00
d0k3
df21331218 New & improved touchscreen playground 2019-06-03 02:27:44 +02:00
Wolfvak
77f857ab64 - added way to prevent a race condition when reading the touchscreen values
- simplified CODEC init and read code
- fixed I2C register

thanks to @profi200 for the last two points
2019-06-03 02:27:44 +02:00
d0k3
dad662610d Moved touch testing functions to HOME -> more... 2019-06-03 02:27:44 +02:00
d0k3
54caa3588e Added touchscreen calibration from NVRAM (thanks @wolfvak) 2019-06-03 02:27:44 +02:00
d0k3
36c03e578c Enable screenshots in touch test functions 2019-06-03 02:27:44 +02:00
d0k3
500333b011 Some source code reorganisation 2019-06-03 02:27:43 +02:00
d0k3
bc66cd0ccf Improved touchscreen calibration GUI & playground 2019-06-03 02:27:43 +02:00
Wolfvak
ad9a9bd5a0 - turn off the LCDs when the lid closes, and turn them back on when it's open
- reset LEDs on boot
- add code to set the notification LED
- add a PXI command to verify the NVRAM is actually online
- notify the ARM9 about the shell state through the HID thing
2019-06-03 02:27:43 +02:00
Wolfvak
79aa9191f7 - clamp down the touchscreen coordinates to boundaries
- fix annoying compilation warning regarding unsigned vs signed comparison
2019-06-03 02:27:42 +02:00
Wolfvak
70757e3385 - added extremely simple calibration dialog, to be replaced by something prettier/saner/safer at a later point in time
- moved all SPI code to the ARM11
- reimplemented NVRAM reading for the new SPI interface
2019-06-03 02:27:42 +02:00
Wolfvak
1b04ca4fa1 - added touchscreen calibration code
- added very simple 12-bit precision fixed point arithmetic code as a fast float replacement
2019-06-03 02:27:42 +02:00
Wolfvak
bf45ee3900 - added new SPI and CODEC drivers ported from linux, thanks to xerpi
- circle pad simulates dpad keys (up, right, down, left)
- raw touchscreen data is provided but currently unused
- added a simple shared memory region thing
- fixed the 10ms delay to be _after_ the backlights are turned on, thanks to profi again

as always, other stuff I probably forgot about
2019-06-03 02:27:42 +02:00
Wolfvak
f5a877d00b - implemented MCU stuff and its interrupts, thanks @profi200 for the info
- moved brightness control to the ARM11
- moved HID updating to the ARM11
- moved screen init from ARM9 to the ARM11, always performed unconditionally
- removed unnecessary SCREENINIT and SET_BRIGHTNESS pxi commands

and other stuff I probably forgot about
2019-06-03 02:27:41 +02:00
Wolfvak
5e56cd2f77 - refactored arm11/sys.c
- moved common.h from the ARM9 tree to the common code tree
- does proper deinit now on the ARM11 side

the bug that caused it to fail to launch some FIRMs has been fixed - it can even boot stock FIRMs
2019-06-03 02:27:41 +02:00
Wolfvak
2f86686388 renamed most low level functions and other stuff to fit with the current theme
- added initial SCU twiddling
- added very untested and unusable SMP code
- fixed race condition that happened on boot
- added initial MMU code (just super basic identity mapping, no caching set up or anything)
- enabled some of the fancier ARMv6 features
- reorganized ARM11 files into their own folders
- possibly more stuff I'm forgetting about
2019-06-03 02:27:41 +02:00
Wolfvak
e70b8ab116 - unified CPU/cache header that works on C and asm code
- added legacy boot PXI command that allows power savings on ARM11
2019-06-03 02:27:41 +02:00
Wolfvak
987b820c4a beginning of better ARM11:
- moved I2C code to the ARM11 (with an ugly hack that MUST be fixed)
- reworked the PXI protocol to have lower latencies and remove any potential async support
2019-06-03 02:27:41 +02:00
d0k3
c86ebe4baa CIA checker tool: properly detect custom TMD 2019-04-17 00:45:48 +02:00
d0k3
151e6389ac Use iomemcpy for registers (thanks @profi200) 2019-04-17 00:45:48 +02:00
luigoalma
6a95643edb Very minor optimization
It only effect happens at common misaligned memory check and fixup
Does the exact same end result, just in less 2 instructions and independent of r4 and r5, using r12 instead
2019-04-16 00:41:31 +02:00
d0k3
10425bfa03 Fix LTO related compiler warnings 2019-03-21 01:57:07 +01:00
d0k3
d762c390af CPPCheck audit, several fixes 2019-03-21 00:42:39 +01:00
d0k3
539099db81 Fix compiling script runners 2019-03-20 23:53:50 +01:00
d0k3
21fdb9543a Added ability to convert DSiWare .nds to CIA
Fixes #465
2019-03-20 02:07:34 +01:00
d0k3
f51a48c39e sha.c: add volatile keyword where required 2019-03-19 00:20:10 +01:00
luigoalma
1e2b45941b revert seqmemcpy and memcpy reimplementation 2019-03-15 00:48:24 +01:00
Eix
c644820e41 re-order the keyboard string to make renaming stuff less annoying 2019-03-15 00:34:42 +01:00
windows-server-2003
732165153b Implemented new file selector 2019-03-15 00:34:41 +01:00
d0k3
d50e6b88ae Scripting: add dumptxt command 2019-03-14 01:50:27 +01:00
d0k3
82d6e94789 Fix compiling in devkitARM r51
Use custom (sequential) memcpy for reading / writing hardware registers.
Fixes #460
2019-03-13 01:36:33 +01:00
d0k3
10ec95b8fe Fix #455 2019-02-12 00:03:55 +01:00
d0k3
a04c2beb3c Scripting: Add textview command 2019-01-16 01:26:40 +01:00
d0k3
0906b4e6d8 Update FatFS to R0.13c 2019-01-09 01:05:48 +01:00
d0k3
d4ea225677 Offer fixing of BOSS files on failed verification
Fixes #442
2018-12-08 18:12:25 +01:00
d0k3
75a23a15c3 Show cart ID and type on cart drive
Fixes #435
2018-11-05 00:19:41 +01:00
d0k3
f13a5c6e4f Safety measure for scriptrunners: 0:/iderped.firm
see: https://github.com/ScarletStudy/DGS1-3DS-Release/issues/47
2018-10-31 00:19:13 +01:00
d0k3
71d0cecf20 Fix copying to virtual NAND 2018-10-29 01:33:20 +01:00
d0k3
9f25b6cf25 Improved TMD checks 2018-10-29 00:04:23 +01:00
d0k3
e7de8b9ca3 CIA builder: Better handling for personalized legit tickets 2018-10-24 00:21:39 +02:00
d0k3
449a89277e ticket.db: fix out of bounds reads 2018-10-23 01:47:16 +02:00
d0k3
2b8d4fcc04 Don't remove TMD crypto flags on non-existing contents 2018-10-18 00:11:07 +02:00
d0k3
762edd5432 Fix mounting incomplete DLC CIAs 2018-10-16 01:00:03 +02:00
knight-ryu12
f58bb6e61b Make N_PANE definable 2018-10-08 01:44:35 +02:00
d0k3
e477ec0a18 Fix compile errors introduced by bfc3363
Fixes #432
2018-10-02 18:42:04 +02:00
d0k3
bfc3363012 Improved / fixed DirStruct entry name handling
Fixes #431
2018-10-01 23:51:05 +02:00
d0k3
8f24ccec0c Full / proper verification for romFS in NCCH 2018-09-25 01:42:52 +02:00
Hyarion Sanyënóna
5c138e1219 Add scripting commands extrcode, cmprcode, cp -p
* extrcode already existed, but now has a progress bar and an entry in HelloScript.
* cmprcode recompresses a code binary into its original format. It takes 2-3 minutes.
* cp -p appends file 2 to the end of file 1 rather than overwriting it.
2018-09-19 00:47:28 +02:00