Add some helpers to tidy up XAP (#20235)
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user