Compare commits

...

2 Commits

Author SHA1 Message Date
Nick Brassel
42aa83787f
Optionally keep intermediate file listings in order to do comparisons between builds. (#20237) 2023-03-23 12:48:25 +11:00
Joel Challis
6540b31d71
Add some helpers to tidy up XAP (#20235) 2023-03-23 00:37:13 +00:00
5 changed files with 22 additions and 0 deletions

View File

@ -441,6 +441,14 @@ $(eval $(call add_qmk_prefix_defs,MCU_FAMILY,MCU_FAMILY))
$(eval $(call add_qmk_prefix_defs,MCU_SERIES,MCU_SERIES))
$(eval $(call add_qmk_prefix_defs,BOARD,BOARD))
# Control whether intermediate file listings are generated
# e.g.:
# make handwired/onekey/blackpill_f411:default KEEP_INTERMEDIATES=yes
# cat .build/obj_handwired_onekey_blackpill_f411_default/quantum/quantum.i | sed -e 's@^#.*@@g' -e 's@^\s*//.*@@g' -e '/^\s*$/d' | clang-format
ifeq ($(strip $(KEEP_INTERMEDIATES)), yes)
OPT_DEFS += -save-temps=obj
endif
# TODO: remove this bodge?
PROJECT_DEFS := $(OPT_DEFS)
PROJECT_INC := $(VPATH) $(EXTRAINCDIRS) $(KEYBOARD_PATHS)

View File

@ -112,6 +112,10 @@ static bool audio_initialized = false;
static bool audio_driver_stopped = true;
audio_config_t audio_config;
void eeconfig_update_audio_current(void) {
eeconfig_update_audio(audio_config.raw);
}
void audio_init(void) {
if (audio_initialized) {
return;

View File

@ -63,6 +63,11 @@ typedef struct {
// public interface
/**
* @brief Save the current choices to the eeprom
*/
void eeconfig_update_audio_current(void);
/**
* @brief one-time initialization called by quantum/quantum.c
* @details usually done lazy, when some tones are to be played

View File

@ -422,6 +422,10 @@ void rgblight_disable_noeeprom(void) {
rgblight_set();
}
void rgblight_enabled_noeeprom(bool state) {
state ? rgblight_enable_noeeprom() : rgblight_disable_noeeprom();
}
bool rgblight_is_enabled(void) {
return rgblight_config.enable;
}

View File

@ -321,6 +321,7 @@ void rgblight_enable(void);
void rgblight_enable_noeeprom(void);
void rgblight_disable(void);
void rgblight_disable_noeeprom(void);
void rgblight_enabled_noeeprom(bool state);
/* hue, sat, val change */
void rgblight_increase_hue(void);