diff options
| author | Nick Brassel | 2023-10-22 04:27:31 +0200 |
|---|---|---|
| committer | GitHub | 2023-10-22 04:27:31 +0200 |
| commit | 8e614250b4b44a14a6a8c93bea3a6d1fd02790cf (patch) | |
| tree | 15c000b7765082911a3a6d84b1499b51c25f43d8 /drivers/painter/comms/qp_comms_dummy.c | |
| parent | 48d9140cfc197d6f4c54bf8022902d28fac37624 (diff) | |
[QP] Add support for OLED, variable framebuffer bpp (#19997)
Co-authored-by: Pablo MartÃnez <58857054+elpekenin@users.noreply.github.com>
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
Fixup delta frame coordinates after #20296.
Diffstat (limited to 'drivers/painter/comms/qp_comms_dummy.c')
| -rw-r--r-- | drivers/painter/comms/qp_comms_dummy.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/painter/comms/qp_comms_dummy.c b/drivers/painter/comms/qp_comms_dummy.c new file mode 100644 index 0000000000..2ed49d2232 --- /dev/null +++ b/drivers/painter/comms/qp_comms_dummy.c @@ -0,0 +1,34 @@ +// Copyright 2023 Nick Brassel (@tzarc) +// SPDX-License-Identifier: GPL-2.0-or-later + +#ifdef QUANTUM_PAINTER_DUMMY_COMMS_ENABLE + +# include "qp_comms_dummy.h" + +static bool dummy_comms_init(painter_device_t device) { + // No-op. + return true; +} + +static bool dummy_comms_start(painter_device_t device) { + // No-op. + return true; +} + +static void dummy_comms_stop(painter_device_t device) { + // No-op. +} + +uint32_t dummy_comms_send(painter_device_t device, const void *data, uint32_t byte_count) { + // No-op. + return byte_count; +} + +painter_comms_vtable_t dummy_comms_vtable = { + // These are all effective no-op's because they're not actually needed. + .comms_init = dummy_comms_init, + .comms_start = dummy_comms_start, + .comms_stop = dummy_comms_stop, + .comms_send = dummy_comms_send}; + +#endif // QUANTUM_PAINTER_DUMMY_COMMS_ENABLE |