diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-03-21 17:49:01 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-10-26 13:44:58 +0100 |
commit | c1b29826279b7405990ccb521d1fb5a24db2e58e (patch) | |
tree | 5995d7b339233b5186d51b32089f38a012a67b0b /hw/misc/trace-events | |
parent | a5fac424c76d6401ecde4ecb7d846e656d0d6e89 (diff) | |
download | qemu-c1b29826279b7405990ccb521d1fb5a24db2e58e.zip qemu-c1b29826279b7405990ccb521d1fb5a24db2e58e.tar.gz qemu-c1b29826279b7405990ccb521d1fb5a24db2e58e.tar.bz2 |
hw/misc/led: Add a LED device
Add a LED device which can be connected to a GPIO output.
They can also be dimmed with PWM devices. For now we do
not implement the dimmed mode, but in preparation of a
future implementation, we start using the LED intensity.
LEDs are limited to a fixed set of colors.
Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200912134041.946260-2-f4bug@amsat.org>
Diffstat (limited to 'hw/misc/trace-events')
-rw-r--r-- | hw/misc/trace-events | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/misc/trace-events b/hw/misc/trace-events index 6054f9a..2b6310d 100644 --- a/hw/misc/trace-events +++ b/hw/misc/trace-events @@ -223,6 +223,9 @@ via1_adb_poll(uint8_t data, const char *vadbint, int status, int index, int size grlib_ahb_pnp_read(uint64_t addr, uint32_t value) "AHB PnP read addr:0x%03"PRIx64" data:0x%08x" grlib_apb_pnp_read(uint64_t addr, uint32_t value) "APB PnP read addr:0x%03"PRIx64" data:0x%08x" +# led.c +led_set_intensity(const char *color, const char *desc, uint8_t intensity_percent) "LED desc:'%s' color:%s intensity: %u%%" + # pca9552.c pca955x_gpio_status(const char *description, const char *buf) "%s GPIOs 0-15 [%s]" pca955x_gpio_change(const char *description, unsigned id, unsigned prev_state, unsigned current_state) "%s GPIO id:%u status: %u -> %u" |