risc-v/qemu-rv: Add LED Driver for QEMU RISC-V 32-bit and 64-bit

- This PR adds the LED Driver for QEMU RISC-V 32-bit and 64-bit (User LEDs and Auto LEDs)
- QEMU RISC-V LED Driver will be used by the Rust Blinky App for Google Summer of Code
- Blinking the LED is probably the most common Embedded Demo, and now it's supported by QEMU RISC-V
- We added NuttX Configs `rv-virt:leds` and `rv-virt:leds64` to support User LEDs for 32-bit and 64-bit RISC-V
- Turning on/off a Simulated User LED will print a log message: "LED 1 set to 1"
- The code is derived from NuttX PinePhone LED Driver
This commit is contained in:
Rushabh Gala
2024-07-23 22:41:52 +05:30
committed by Alan Carvalho de Assis
parent cde13a74b1
commit 76bf6285c1
10 changed files with 515 additions and 0 deletions
@@ -229,6 +229,16 @@ ksmp64
Identical to the `knsh64`_ configuration but with SMP support.
leds
----
Similar to the `nsh`_ configuration, but with User LEDs support for 32-bit RISC-V.
leds64
------
Similar to the `nsh64`_ configuration, but with User LEDs support for 64-bit RISC-V.
netnsh
------