Typedef'ed layer_state_t to uint32_t (#3637)

* Typedef'ed layer_state_t to uint32_t.

This enables future work with layer_state_t to uint8_t for optimization purposes.

* Removed accidental xeal60 commit

* Revert to egyptian brackets, added sizeof(layer_state_t) so when layer_state_t is redefined it will automagically work.

* Add additional typedefs

* Add checks for setting layer state

* Update tmk_core/common/action_layer.h

Co-Authored-By: alex-ong <[email protected]>

* Revert commit.
This commit is contained in:
Alex Ong authored and Drashna Jaelre committed 2019-05-17 13:47:50 -07:00
1 parent 90a45aac6e
commit 00d1d7828c
6 files changed
+50 -42

No files matched your search

+2 -2
View File
@@ -61,10 +61,10 @@
#include "send_string_keycodes.h"
#include "suspend.h"
extern uint32_t default_layer_state;
extern layer_state_t default_layer_state;
#ifndef NO_ACTION_LAYER
extern uint32_t layer_state;
extern layer_state_t layer_state;
#endif
#ifdef MIDI_ENABLE