Sync activity timestamps between sides. (#20192)
Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
This commit is contained in:
parent
0e1e543836
commit
a518e1e5d8
10 changed files with 78 additions and 25 deletions
|
@ -122,6 +122,14 @@ typedef struct _split_slave_haptic_sync_t {
|
|||
} split_slave_haptic_sync_t;
|
||||
#endif // defined(HAPTIC_ENABLE) && defined(SPLIT_HAPTIC_ENABLE)
|
||||
|
||||
#if defined(SPLIT_ACTIVITY_ENABLE)
|
||||
# include "keyboard.h"
|
||||
typedef struct _split_slave_activity_sync_t {
|
||||
uint32_t matrix_timestamp;
|
||||
uint32_t encoder_timestamp;
|
||||
} split_slave_activity_sync_t;
|
||||
#endif // defined(SPLIT_ACTIVITY_ENABLE)
|
||||
|
||||
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
|
||||
typedef struct _rpc_sync_info_t {
|
||||
uint8_t checksum;
|
||||
|
@ -204,6 +212,10 @@ typedef struct _split_shared_memory_t {
|
|||
split_slave_haptic_sync_t haptic_sync;
|
||||
#endif // defined(HAPTIC_ENABLE)
|
||||
|
||||
#if defined(SPLIT_ACTIVITY_ENABLE)
|
||||
split_slave_activity_sync_t activity_sync;
|
||||
#endif // defined(SPLIT_ACTIVITY_ENABLE)
|
||||
|
||||
#if defined(SPLIT_TRANSACTION_IDS_KB) || defined(SPLIT_TRANSACTION_IDS_USER)
|
||||
rpc_sync_info_t rpc_info;
|
||||
uint8_t rpc_m2s_buffer[RPC_M2S_BUFFER_SIZE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue