1
0
Fork 0

[MERGE] Consolidate EE Hands with MASTER_LEFT/RIGHT and simplify behavior (24162)

This commit is contained in:
Drashna Jael're 2024-07-20 17:20:01 -07:00
parent 9e7acf446f
commit 70b56b2074
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
143 changed files with 159 additions and 1220 deletions

View file

@ -29,6 +29,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif
#define EECONFIG_MAGIC_NUMBER_OFF (uint16_t)0xFFFF
typedef enum {
EEHANDS_LEFT,
EEHANDS_RIGHT,
EEHANDS_UNSET,
} eehands_t;
// Dummy struct only used to calculate offsets
typedef struct PACKED {
uint16_t magic;
@ -149,8 +155,8 @@ uint32_t eeconfig_read_haptic(void);
void eeconfig_update_haptic(uint32_t val);
#endif
bool eeconfig_read_handedness(void);
void eeconfig_update_handedness(bool val);
eehands_t eeconfig_read_handedness(void);
void eeconfig_update_handedness(eehands_t val);
#if (EECONFIG_KB_DATA_SIZE) > 0
bool eeconfig_is_kb_datablock_valid(void);