Commit graph

1510 commits

Author SHA1 Message Date
Stefan Achatz
0455e5770b Activated NAND write support in sddriver 2021-05-15 13:51:28 +02:00
Stefan Achatz
7c9cd5e76b Using padding with hardcoded values for NEWRPL.ROM
As it was not possible to get the real filesize from the linker script,
I fell back to this failsafe approach.
2021-05-06 08:52:18 +02:00
Stefan Achatz
9a84d83e19 Fixed error in NAND ecc4 correction 2021-05-06 08:21:52 +02:00
claudiol
d3ce7f91bf Added large object support (untested)
Disabled read serial number from flash (causes infinite loop when waking up from poweroff - need to investigate)
Moved serial number to scratch memory
Fixed LD script file length to not include data sections.
2021-05-05 11:16:32 -04:00
Stefan Achatz
07a6d16521 Read serial number of device 2021-04-27 18:54:08 +02:00
claudiol
1b410700bf Merge branch 'feature/prime_usb_fewer_zero_size_packets' 2021-04-26 17:17:31 -04:00
claudiol
c232a30285 Merge remote-tracking branch 'sforge/feature/prime_usb_fewer_zero_size_packets' 2021-04-26 17:12:50 -04:00
claudiol
b7f1d3b1a0 Remove hallted program file during restore.
Make sure we stay in newRPL after SWRESET.
Increase available ram on PC version.
2021-04-26 17:06:50 -04:00
claudiol
82b4c6ed47 Select 12 MHz reference clock at PHYCTRL.
GPH14 Pullup enabled.
2021-04-23 11:40:58 -04:00
claudiol
da23f4a999 Fixed build issue with xgl header. Implemented preferred units on variable properties. 2021-04-14 08:43:35 -04:00
Stefan Achatz
5858b0e088 Prime: Changed USB reset behaviour 2021-04-10 14:58:57 +02:00
Stefan Achatz
63f41d4b5e Prime: Initiate USB data transfer via callback instead of zero size packets 2021-04-07 18:43:21 +02:00
Stefan Achatz
baa3bd31c5 Further USB implementation
Works for me: enumeration, connection to gui, usbsend
Not tested: plug-in/out behaviour
Todo: reset, suspend, resume
2021-04-06 15:59:15 +02:00
claudiol
b3a20b8b6f Changed contrast settings for 39gs/40gs.
Increased DEBOUNCE for Thumb mode exception handlers.
Fixed typo in help for FNTFORM
Font module added in wrong place.
2021-04-02 17:15:54 -04:00
claudiol
7548a05c01 Added custom LCD contrast settings for 39/40gs targets. Added new target: HP48GII 2021-04-01 11:09:30 -04:00
claudiol
66296cc112 Added missing include to build old newRPL Desktop. 2021-03-23 17:28:49 -04:00
Stefan Achatz
799529d171 Further USB implementation, device enumerates on Win7 and Linux.
Improved for lazy ack checking again.
Changed the focus of USB_STATUS_EP0TX and RX and some functions.
Endpoints 1 + 2 are prepared but not functional yet.
2021-03-17 18:58:24 +01:00
Stefan Achatz
d47b8bf7b9 Some USB endpoint 0 improvements
Fixed receival of device request setup transaction.
Increased packet size.
Immediate ack testing of transmission.
Fixed some typos.
Completely removed the concept of padding transmissions.
Code deduplication.
2021-02-25 19:57:42 +01:00
claudiol
b6113768c9 Made a few changes to USB sriver - now it resets and does the HS handshake, but then it reports CRC data error and Bit Stuffing errors. 2021-02-17 13:15:22 -05:00
claudiol
29af82d891 Merge branch 'master' of ssh://git.code.sf.net/p/newrpl/sources 2021-02-16 15:16:33 -05:00
Stefan Achatz
06dc57e034 Enabling USB IRQ
PRIME_OS sets GPH14 high when usb is active. IRQ is now called but still doesn't answer to descriptor requests.
2021-02-16 17:59:30 +01:00
Stefan Achatz
89ea86b855 Using CABLE_IS_CONNECTED consistent 2021-02-16 17:59:30 +01:00
claudiol
12647140d1 Added color graphics library (breaks build of Desktop).
A few USB driver fixes - still not working.
2021-02-14 12:46:51 -05:00
Stefan Achatz
ee3e6ed3ca Enabled USB
Fixed some typos, doesn't crash anymore but no communication yet
2021-02-11 20:31:07 +01:00
claudiol
429fe85925 Fixed a few warnings.
Fixed project files that needed Font18 to compile.
2021-02-04 12:26:19 -05:00
claudiol
2406d128ef Fixed displaying error message.
No battery indicator in single menu mode.
2021-02-04 12:00:57 -05:00
claudiol
0066c2de85 Changed per-pixel drawing to whole-screen bitmap on PC and android versions.
Added files needed to build Prime-style android version.
Fixed project files accordingly.
2021-02-04 11:02:55 -05:00
claudiol
bd7dd90101 Disable clocks to modules we don't use. 2021-02-03 17:12:47 -05:00
claudiol
eeeb9e3ee5 Fixed 18 pixel font. Disabled USB initialization for the time being. 2021-02-02 18:18:39 -05:00
claudiol
5287679d5b Merge branch 'master' of ssh://git.code.sf.net/p/newrpl/sources 2021-02-02 16:45:36 -05:00
claudiol
565b0a91bf Added USB driver (non-functional). 2021-02-02 16:12:05 -05:00
Stefan Achatz
084ccc3a1c Lower power consumption
Setting gpio registers after startup and before sleep.
Also fixes problem with non-working recurring sleeps.

Initial power consumption dropped from 164 mA to 146 mA.
Power consumption after reboot dropped from 162 mA to 132 mA.
Sleep mode dropped from 35 mA to 8 mA.
For comparison PRIME_OS eats 128 mA on and 2 mA sleeping.
2021-02-02 21:55:14 +01:00
claudiol
11782284a0 Fixed various files so all projects compile. Added 18 pixel font. 2021-01-24 17:31:20 -05:00
claudiol
9d3f8da39c Changed menu layout 2021-01-24 13:47:35 -05:00
claudiol
ee20c9da62 Added font for notifications icons. Added notification icons in the status area (Prime & PC) 2021-01-15 18:48:23 -05:00
claudiol
6b093f8c06 Fixed Remote USBARCHIVE and USBRESTORE in PC simulator 2021-01-15 08:17:12 -05:00
claudiol
959807c49f Fixed mouse and keyboard actions on PC target (Prime look simulator) 2021-01-13 16:01:56 -05:00
claudiol
d5224941a4 Fixed complex letters in 24 pixel font.
Reorganized alpha mode keys.
Recalibrated battery meter.
Added key names for WAIT and KEY commands.
Fixed keyboard scanning routine.
2021-01-12 18:47:25 -05:00
Stefan Achatz
34aaa5f1f6 Fixing clobber lists on some inline assembler functions 2021-01-08 20:24:59 +01:00
claudiol
b88dc2cbf3 Update multiboot to use the new LCD poweron procedure. 2021-01-08 09:04:46 -05:00
claudiol
51f64504b8 Use timer 4 for LCD timing control. Initialize LCD earlier. 2021-01-08 08:45:43 -05:00
claudiol
5672cbf9e5 Fixed 24 pixel font glitches (now for real). 2021-01-07 08:38:26 -05:00
claudiol
eba0e95335 Fixed some incorrect characters on Font24 2021-01-06 17:17:06 -05:00
claudiol
643229cc0d Fixed LCD powerup sequence using ILI9322 datasheet. 2021-01-06 09:43:10 -05:00
claudiol
dbe793df83 Merge branch 'master' of ssh://git.code.sf.net/p/newrpl/sources 2021-01-06 08:20:02 -05:00
claudiol
7c599fbec6 Fixed CPU clocks - DRAM crashes above 200 Mhz (?) 2021-01-06 08:18:44 -05:00
Stefan Achatz
14def3d19e Fixed address 0 dereferencing in release builds 2021-01-05 20:00:47 +01:00
Stefan Achatz
566bca0825 Added missing header inclusion 2021-01-02 09:15:59 +01:00
Stefan Achatz
cd3d4ea31f Using NEWRPL_MAGIC consintently 2021-01-02 09:15:56 +01:00
Stefan Achatz
ac383ac73f Fixed firmware compilation with gcc-10
gcc 10 searches for memory movement patterns and replaces the code with
memmove and other stdlib implementations.
-fno-tree-loop-distribute-patterns is used to prevent this behaviour for
nostdlib builds.
2020-12-30 10:19:17 +01:00