diff options
| author | Pablo MartÃnez <58857054+elpekenin@users.noreply.github.com> | 2025-05-22 15:31:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 23:31:15 +1000 |
| commit | 955809bd5aee8b1444595b450eeeef1f42799995 (patch) | |
| tree | 08da1f696605925286f681a2b738fa5f35cd0386 /quantum/backlight | |
| parent | fa24b0fcce2c5f3330f2d798c3caf91a130babdb (diff) | |
Add `compiler_support.h` (#25274)
Diffstat (limited to 'quantum/backlight')
| -rw-r--r-- | quantum/backlight/backlight.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/backlight/backlight.h b/quantum/backlight/backlight.h index 561c7f8a94..2faa8fc4f2 100644 --- a/quantum/backlight/backlight.h +++ b/quantum/backlight/backlight.h | |||
| @@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #include <stdint.h> | 20 | #include <stdint.h> |
| 21 | #include <stdbool.h> | 21 | #include <stdbool.h> |
| 22 | 22 | ||
| 23 | #include "compiler_support.h" | ||
| 24 | |||
| 23 | #ifndef BACKLIGHT_LEVELS | 25 | #ifndef BACKLIGHT_LEVELS |
| 24 | # define BACKLIGHT_LEVELS 3 | 26 | # define BACKLIGHT_LEVELS 3 |
| 25 | #elif BACKLIGHT_LEVELS > 31 | 27 | #elif BACKLIGHT_LEVELS > 31 |
| @@ -44,7 +46,7 @@ typedef union backlight_config_t { | |||
| 44 | }; | 46 | }; |
| 45 | } backlight_config_t; | 47 | } backlight_config_t; |
| 46 | 48 | ||
| 47 | _Static_assert(sizeof(backlight_config_t) == sizeof(uint8_t), "Backlight EECONFIG out of spec."); | 49 | STATIC_ASSERT(sizeof(backlight_config_t) == sizeof(uint8_t), "Backlight EECONFIG out of spec."); |
| 48 | 50 | ||
| 49 | void backlight_init(void); | 51 | void backlight_init(void); |
| 50 | void backlight_toggle(void); | 52 | void backlight_toggle(void); |
