Commit graph

29 commits

Author SHA1 Message Date
bfc9f6f0f0 Add overclocking
.. not currently compatible with PSRAM (sadly), even though I tried
doing the right things with PSRAM clocking.
2025-03-27 12:07:36 -05:00
7d815b8fd3 finish updating pico-extras submodule 2025-03-27 10:24:18 -05:00
6ed6eae9bc quiet debug messages for i2s init 2025-03-27 10:23:43 -05:00
c611126e85 actually call i2s dac setup code 2025-03-24 11:14:53 -05:00
9f7a3ac7a5 bump sample rate to 22256
this is the "correct" rate based on the original horizontal line rate of
the mac plus and is supported on the fruit jam i2s dac
2025-03-24 10:02:54 -05:00
1d7580c8b5 Move audio to onboard i2s dac 2025-03-24 09:59:21 -05:00
cd3bb34482 Fix inverse video & support 512x342 w/o psram 2025-03-24 09:50:47 -05:00
202098c881 fix printing size of disc image on debug uart
it's actually an unsigned long long, but we can bet on it actually having
a size that fits in 32 bits.
2025-03-21 12:46:55 -05:00
7fc9037604 There's audio, but it's glitched.
it only works at all with 128k or 256k non-psram builds

you can hear the beep when you adjust the slider in control panel, but
there's other audio overlaid on it that is kind of a weird descending tone,
very regular in nature.

The sample rate is set to 20k not 22.255k because of my i2s dac not
liking random sample rates.

Instead of using the i2s dac on the fruit jam, this uses A0 (data),
A1 (lrck), A2 (bclk). It's not super convenient, and it's hard coded.
2025-03-20 13:10:48 -05:00
6dce5594c5 show audio buffer next to screen in 512x342 2025-03-18 14:06:35 -05:00
a5e4afc98a use cached psram access 2025-03-18 13:56:42 -05:00
ada575fe01 Support 512x342 with hstx when mirroring from psram 2025-03-17 20:32:43 -05:00
9fb0ec8f60 Add psram support
it seems to be a tad slower but what do you want....!
2025-03-17 20:14:56 -05:00
bcb13e295a hstx: Use DMA_IRQ_0 to avoid conflict with SD card reading 2025-03-17 13:52:30 -05:00
691046fe6a Make SPI instance selectable (not needed, as it turns out) 2025-03-17 13:52:22 -05:00
6c18cee5ec USB mouse works! 2025-03-14 15:05:19 -05:00
d0a29092b6 WIP switching to pico-pio-usb 2025-03-14 14:21:13 -05:00
6805b1191b last tweaks? 2025-03-14 14:00:50 -05:00
cd730374eb bits are emerging in the right order 2025-03-14 11:22:39 -05:00
002236b93a WIP don't optimize the setup function at all 2025-03-14 10:19:19 -05:00
a939ea65a1 WIP fix pixel ctrl value & how row start is calculated 2025-03-14 10:11:30 -05:00
e60a4d174b still WIP 2025-03-14 09:36:19 -05:00
0528f6a466 WIP -- hstx display sort of exists but is garbled 2025-03-14 09:12:46 -05:00
4cf4e3d4c2 set the stage for HSTX support 2025-03-07 12:26:20 -06:00
Matt Evans
559fac339b Add USE_VGA_RES configuration for 640x480 display
This (practically) requires use of -DMEMSIZE=208 or larger, as it uses more
memory.  But, works nicely :)
2024-12-20 23:33:38 +00:00
Matt Evans
99a287671f sd: Oops, wire up SD_MHZ parameter
The SD_MHZ config option exists, but wasn't wired up in the SD
initialisation code.
2024-08-27 17:42:21 +01:00
Matt Evans
67cb1741c6 Add support for boot/disc storage on SD card
Uses the no-OS-FatFS-SD-SPI-RPi-Pico library, and on startup opens
the fs to search for 'umac0.img' or 'umac0ro.img'.  If the former
is found, it's used as a RW image; the latter is RO.  If no images
are found, the code falls back to an in-flash disc image; you can
set up a default that's used if no SD card is inserted, for example.

The wiring defaults to GPIOs 2/3/4/5 for SCK/TX/RX/CS respectively,
which matches the upper-left SPI0 on the Pico board.  The wiring
can be overridden by defining SD_TX, SD_RX, SD_SCK, SD_CS on the
`cmake` build commandline.

The SPI speed defaults to a very conservative 5MHz (at least one of
my cards will only cope with this).  Again, this can be overridden
by defining SD_MHZ on the commandline (to an integer in units of MHz).

Note this also disables the RTC portion of FatFS when building
for RP2350 (which doesn't have an RTC, or APIs for it).
2024-08-27 02:45:17 +01:00
Matt Evans
7a0327370e Add missing headers
In video, include padsbank header
In main, add clocks header

These seem to be needed on SDK v2...
2024-08-22 21:56:36 +01:00
Matt Evans
bd30ffe141 Initial release
Squashed, from v0.1
2024-06-15 21:29:07 +01:00