diff options
author | Nick Brassel <nick@tzarc.org> | 2022-06-20 14:20:56 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 14:20:56 +1000 |
commit | aa06893b58ac3ed88e796968d237f60f4c156875 (patch) | |
tree | ad4b3a637b7bba88de772dd50150262d2992603e /keyboards/tzarc/djinn/djinn.h | |
parent | ad2e85361128a2252798a7bb4c1cbc0bcd58e8ab (diff) |
Add Djinn. (#17382)
* Add Djinn.
* Review comments.
* Further cleanup.
Diffstat (limited to 'keyboards/tzarc/djinn/djinn.h')
-rw-r--r-- | keyboards/tzarc/djinn/djinn.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/tzarc/djinn/djinn.h b/keyboards/tzarc/djinn/djinn.h new file mode 100644 index 0000000000..ff6b555e8e --- /dev/null +++ b/keyboards/tzarc/djinn/djinn.h @@ -0,0 +1,32 @@ +// Copyright 2018-2022 Nick Brassel (@tzarc) +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once +#include "quantum.h" +#include "qp.h" + +//---------------------------------------------------------- +// General stuff + +extern painter_device_t lcd; + +void matrix_wait_for_interrupt(void); + +void usbpd_update(void); +const char* usbpd_str(usbpd_allowance_t allowance); + +//---------------------------------------------------------- +// Runtime data sync -- keyboard + +#pragma pack(push) +#pragma pack(1) +typedef struct kb_runtime_config { + unsigned lcd_power : 1; + usbpd_allowance_t current_setting : 2; +} kb_runtime_config; +#pragma pack(pop) + +extern kb_runtime_config kb_state; + +void kb_state_update(void); +void kb_state_sync(void); +void kb_state_sync_slave(uint8_t m2s_size, const void* m2s_buffer, uint8_t s2m_size, void* s2m_buffer); |