1 #ifndef SPLIT_COMMON_MATRIX_H
2 #define SPLIT_COMMON_MATRIX_H
4 #include <common/matrix.h>
10 typedef struct _Serial_m2s_buffer_t {
11 #ifdef BACKLIGHT_ENABLE
12 uint8_t backlight_level;
14 #if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
15 rgblight_config_t rgblight_config; //not yet use
17 // When MCUs on both sides drive their respective RGB LED chains,
18 // it is necessary to synchronize, so it is necessary to communicate RGB information.
19 // In that case, define the RGBLIGHT_SPLIT macro.
21 // Otherwise, if the master side MCU drives both sides RGB LED chains,
22 // there is no need to communicate.
24 } Serial_m2s_buffer_t;
26 extern volatile Serial_m2s_buffer_t serial_m2s_buffer;
28 void serial_master_init(void);
29 void serial_slave_init(void);