Audio System + Drivers (#562)
This commit is contained in:
@@ -19,10 +19,12 @@
|
||||
#include <Tactility/network/NtpPrivate.h>
|
||||
#include <Tactility/service/ServiceManifest.h>
|
||||
#include <Tactility/service/ServiceRegistration.h>
|
||||
#include <Tactility/service/audio/Audio.h>
|
||||
#include <Tactility/settings/TimePrivate.h>
|
||||
|
||||
#include <tactility/concurrent/thread.h>
|
||||
#include <tactility/crypt_module.h>
|
||||
#include <tactility/drivers/audio_stream.h>
|
||||
#include <tactility/drivers/display.h>
|
||||
#include <tactility/drivers/grove.h>
|
||||
#include <tactility/drivers/power_supply.h>
|
||||
@@ -72,6 +74,7 @@ bool MainDispatcher::dispatch(Function function, TickType_t timeout) const {
|
||||
// region Default services
|
||||
namespace service {
|
||||
// Primary
|
||||
namespace audio { extern const ServiceManifest manifest; }
|
||||
namespace gps { extern const ServiceManifest manifest; }
|
||||
namespace wifi { extern const ServiceManifest manifest; }
|
||||
#ifdef ESP_PLATFORM
|
||||
@@ -111,6 +114,7 @@ namespace app {
|
||||
namespace appdetails { extern const AppManifest manifest; }
|
||||
namespace applist { extern const AppManifest manifest; }
|
||||
namespace appsettings { extern const AppManifest manifest; }
|
||||
namespace audiosettings { extern const AppManifest manifest; }
|
||||
namespace boot { extern const AppManifest manifest; }
|
||||
namespace development { extern const AppManifest manifest; }
|
||||
namespace display { extern const AppManifest manifest; }
|
||||
@@ -172,6 +176,9 @@ static void registerInternalApps() {
|
||||
addAppManifest(app::apphubdetails::manifest);
|
||||
addAppManifest(app::applist::manifest);
|
||||
addAppManifest(app::appsettings::manifest);
|
||||
if (service::audio::isAvailable()) {
|
||||
addAppManifest(app::audiosettings::manifest);
|
||||
}
|
||||
if (device_exists_of_type(&DISPLAY_TYPE)) {
|
||||
addAppManifest(app::kerneldisplay::manifest);
|
||||
} else if (hal::hasDevice(hal::Device::Type::Display)) {
|
||||
@@ -308,6 +315,9 @@ static void registerAndStartSecondaryServices() {
|
||||
|
||||
static void registerAndStartPrimaryServices() {
|
||||
LOG_I(TAG, "Registering and starting primary system services");
|
||||
if (device_exists_of_type(&AUDIO_STREAM_TYPE)) {
|
||||
addService(service::audio::manifest);
|
||||
}
|
||||
addService(service::gps::manifest);
|
||||
addService(service::wifi::manifest);
|
||||
#ifdef ESP_PLATFORM
|
||||
|
||||
Reference in New Issue
Block a user