captain-amygdala / pistorm

68k Hardware Emulator
MIT License
737 stars 103 forks source link

SD CARD ACT LED overriden #56

Closed JaneDoe649 closed 2 years ago

JaneDoe649 commented 2 years ago

Thanks for this project and all the work done.

I made a little schematic in order to drive AMIGA 2000 hard drive activity LED through the PI ACT LED. It worked well during the raspian's loading. But when the emulator was running the LED stayed off. I saw in "ps_protocol.h" that the GPFSEL2_OUTPUT and GPFSEL2_INPUT constants forced GPIO29 as input. This GPIO drives ACT LED of PI ZERO 2W I use.

So I made this changes forcing GPIO29 as output and the AMIGA HDD LED took live :)

define GPFSEL2_OUTPUT 0x00000249 replaced by 0x8000249

define GPFSEL2_INPUT 0x00000000 replaced by 0x08000000

I hope this issue could be usefull. Schematic

captain-amygdala commented 2 years ago

Thanks! For future updates we keep that in mind.