~ruther/qmk_firmware

ref: 6e7c1c90fd51e540b3cad03ba3325bcb925d0e2f qmk_firmware/drivers/painter/comms/qp_comms_dummy.c -rw-r--r-- 866 bytes
6e7c1c90 — Rutherther fix: remap ROW3 in kyria because of broken pin by static electricity discharge 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
Do not follow this link