Commit Graph

128 Commits

Author SHA1 Message Date
meepingsnesroms
1230df1ef6 Create resource directory if missing every time not just on first launch 2018-07-30 12:26:44 -07:00
meepingsnesroms
dc0aac322c Make touch input activate(it still dosent work, but it does activate :) ) without pushing the up button
Also fix some reported bugs.
2018-07-30 10:27:00 -07:00
meepingsnesroms
9b1825e2a1 Fix touchpoint streching error, clean up formatting
Release imminent!
2018-07-29 19:07:51 -07:00
meepingsnesroms
95d1c8cf2d Clean ups, add picture 2018-07-28 14:42:38 -07:00
meepingsnesroms
a753dd7435 Make debug viewer resizeable
Also disable register logging outside of sandbox tests, it boots now so any test can just be done by running the OS function directly.
2018-07-28 09:52:10 -07:00
meepingsnesroms
d39182e354 Fix signed chars causing an invalid bitshift 2018-07-27 10:27:31 -07:00
meepingsnesroms
03b646f839 Fix RGB lut registers being swapped for sed1376 and misconceptions about RGB16
Also add a real heat map function.
2018-07-26 20:27:13 -07:00
meepingsnesroms
64ceb7695c Add buffer graph viewer and fix some style nits
The analog resistance values per pixel can now be seen.
The raw RGB16 display mode does have an issue when transitioning from red to green and green to blue where the pixel is almost black though.
2018-07-26 16:18:10 -07:00
meepingsnesroms
0b169e56ab Add tool to create a touchscreen lookup table
The 20 pixel at a time y limit is because Palm OS seems to not allow allocating >64k at a time.

Also removed unsafe mode, whenever a test needs to do something unsafe it can just call turnOffInterrupts()
2018-07-24 17:06:44 -07:00
meepingsnesroms
622c079b6b Fix stack direction in sandbox, add missing \n's
Also make ADS7846 read cycle 4 bits shorter on an 8 bit read as documented in the datasheet.
2018-07-20 12:56:01 -07:00
meepingsnesroms
0131035b79 Sandbox is working
Tests are still launched with a button in a hacky way but they work.
2018-07-19 02:59:08 -07:00
meepingsnesroms
a071f83f8e Make a sandbox area to test how the OS is interfacing with the emulator
Also clean up emulator.c of all the debug stuff.
2018-07-18 17:02:17 -07:00
meepingsnesroms
240e6ab72c Add uncalibrated touchscreen read pixel plotting and manual refresh in ADS7846 Read 2018-07-17 20:20:46 -07:00
meepingsnesroms
799d8daa61 Values returned are based on power save, single vs diferencial reference seems to do nothing on hw 2018-07-15 12:44:54 -07:00
meepingsnesroms
9e4f630f64 Add better way to read single reference ADC values
Alos remove incomplete remote access drivers since they are no longer needed and taking up some of the 32k CODE0 space.
2018-07-14 17:11:20 -07:00
meepingsnesroms
edb0ec8a8c Can now read single ended reference properly
The differencial reference values are also more reasonable now.
2018-07-13 08:42:34 -07:00
meepingsnesroms
9311ae8045 The CPU can now be turned back on by interrupts, but you have to push power twice(its a bug) 2018-07-05 10:22:03 -07:00
meepingsnesroms
0990509918 The top bit of SPIDATA2 seems to directly drive the SPITXD2
I thought the bit had to be shifted off the end of the register before it took effect.

It now properly reads form the battery on boot.
2018-07-02 18:50:04 -07:00
meepingsnesroms
c12d824fc2 New test, minor cleanups and bugfixes 2018-06-26 11:50:55 -07:00
meepingsnesroms
62506e4462 Add new chip select test
Also remove special feature check in chip select setters, that will be handled through emu registers.
2018-06-22 19:42:10 -07:00
meepingsnesroms
86b11ba7dc Both ROMs seem to depend on chipselect doubling
The other information was wrong, removed it to prevent misleading anyone.
2018-06-22 13:56:08 -07:00
meepingsnesroms
1d1b7d73ac Fix PDKBEN triggering invalid interrupts 2018-06-21 15:01:39 -07:00
meepingsnesroms
eafbea75e2 More documentation, clarify m515 ROM types 2018-06-21 11:33:34 -07:00
meepingsnesroms
619507bcd3 Update GPIO map again, speedups
Prevent costly address space resets for writing chip select registers when size and start address stay the same.
2018-06-19 18:19:03 -07:00
meepingsnesroms
3bbffa65a1 Can now run with or without the bootloader in the Qt port
Also clean up ads7846 functions
2018-06-19 14:38:49 -07:00
meepingsnesroms
163cde8fd7 Update GPIO mapping, new tests 2018-06-19 14:13:11 -07:00
meepingsnesroms
de03bb4104 Now responds to touch input, but by locking up 2018-06-19 11:38:29 -07:00
meepingsnesroms
bd94671cbc Add proper support for power button LED 2018-06-18 16:40:05 -07:00
meepingsnesroms
fafa4ba218 Update GPIO map, remove port a from tests, it cant be used when the CPU is in 16 bit mode which Palm OS uses 2018-06-18 16:08:57 -07:00
meepingsnesroms
a0f78c61f3 Cleanups, more GPIO info 2018-06-18 12:12:20 -07:00
meepingsnesroms
f8cf37cb32 Turns out RGB16 actualy puts blue first, title palette fixed
Libretro port builds again too.
2018-06-17 12:51:02 -07:00
meepingsnesroms
5dcef71579 Add m515 ROM with corruption warning 2018-06-17 11:48:41 -07:00
meepingsnesroms
4611410ec3 Move file access to the SD card, upgrade hwTestSuite to the Palm OS 4 SDK for VFS
Files with a length > 65535 wont work with the old method since they are split into resource blocks and cant be copyed out with just a hex editor.
2018-06-17 11:02:45 -07:00
meepingsnesroms
b3df02b89f Start GPIO map, fix SED1376 state only reflecting the most recently set clock line
Should only be enabled if both are active, before enabling or disabling either would set the SED1376 to that state.
2018-06-17 02:13:55 -07:00
meepingsnesroms
e8a97955ca Allow reading PENIRQ when in GPIO mode, more tests 2018-06-16 16:53:06 -07:00
meepingsnesroms
b8282d3f5e Add some m515 specific information, add bus error handling 2018-06-16 14:07:39 -07:00
meepingsnesroms
bbb7c7c038 Fix sed1376 PIP ending too early
Since I am unable to find out what is wrong with the touch screen I just ported the POSE EvtEnqueuePenPoint hack, it will be removed in the future if possible.
2018-06-09 15:48:44 -07:00
meepingsnesroms
701b53bf9d Add more debugging, add missing hardware ports 2018-06-09 12:02:22 -07:00
meepingsnesroms
f68ffa2a9b Fix rather stupid bug I overlooked when reading from the bootloader 2018-06-05 16:30:36 -07:00
meepingsnesroms
2d72deedfc Add more trap calling and debugging tools 2018-06-05 08:37:00 -07:00
meepingsnesroms
2c450fcd4c Add direct trap calling from C 2018-06-05 05:38:18 -07:00
meepingsnesroms
ef71c6243b Update to Qt 5.11 2018-06-02 13:32:58 -07:00
meepingsnesroms
3fb6d28abe Basic stuff for 3dsIrForwarder 2018-05-31 17:35:04 -07:00
meepingsnesroms
166113533a Remove unneeded file access functions 2018-05-29 16:47:54 -07:00
meepingsnesroms
7b3e1c30b2 Add CLK32 speed test 2018-05-29 08:54:13 -07:00
meepingsnesroms
e2a4f7e2ea Try to implement exact timing on SPI2 2018-05-28 13:50:05 -07:00
meepingsnesroms
d1909985f7 Start looking at how the OS implements SPI2 2018-05-27 19:22:09 -07:00
meepingsnesroms
e2719069aa Add CLK32 frequency test, need to put back the custom sprintf though, Palms wont take floats 2018-05-27 15:28:40 -07:00
meepingsnesroms
c5259a630f Fix clearing the status register on debug read 2018-05-27 11:52:34 -07:00
meepingsnesroms
feb937893f Fix all '3's being deleted when the debug string is 51 characters long 2018-05-26 20:40:49 -07:00