cleanup headers

This commit is contained in:
Ben V. Brown 2023-02-05 18:54:25 +11:00
parent 92c3f9b107
commit 30a3a6410e
5 changed files with 12 additions and 17 deletions

View file

@ -18,6 +18,7 @@
#include "ibrt.h"
#include "key_handler.h"
#include "led_control.h"
#include "rb_codec.h"
#ifdef BTIF_BLE_APP_DATAPATH_SERVER
#include "app_ble_cmd_handler.h"
@ -71,12 +72,6 @@ enum APP_POWERON_CASE_T {
APP_POWERON_CASE_NUM
};
#ifdef RB_CODEC
extern int rb_ctl_init();
extern bool rb_ctl_is_init_done(void);
extern void app_rbplay_audio_reset_pause_status(void);
#endif
#ifdef __SUPPORT_ANC_SINGLE_MODE_WITHOUT_BT__
extern bool app_pwr_key_monitor_get_val(void);
static bool anc_single_mode_on = false;
@ -821,7 +816,6 @@ extern "C" void app_bt_key(APP_KEY_STATUS *status, void *param) {
}
}
void app_voice_assistant_key(APP_KEY_STATUS *status, void *param) {
TRACE(2, "%s event %d", __func__, status->event);
#if defined(BISTO_ENABLED) || defined(__AI_VOICE__)

View file

@ -1,5 +1,4 @@
#ifndef IBRT_H_
#define IBRT_H_
#pragma once
#include <stdint.h>
#ifdef __cplusplus
@ -13,4 +12,4 @@ uint8_t get_nv_role(void);
#ifdef __cplusplus
};
#endif
#endif

View file

@ -1,7 +1,5 @@
#ifndef KEY_HANDLER_H_
#define KEY_HANDLER_H_
#pragma once
void app_key_init(void);
void app_key_init_on_charging(void);
#endif

View file

@ -1,9 +1,6 @@
#ifndef LED_CONTROL_H_
#define LED_CONTROL_H_
#pragma once
void LED_statusinit(void);
void startLED_status(int ms);
void stopLED_status(void);
void LED_statusfun(const void *);
#endif

7
apps/main/rb_codec.h Normal file
View file

@ -0,0 +1,7 @@
#pragma once
#ifdef RB_CODEC
extern int rb_ctl_init();
extern bool rb_ctl_is_init_done(void);
extern void app_rbplay_audio_reset_pause_status(void);
#endif