* Remove version from artifact name * Target C++ 20 and higher * Use cpp string * Better crash implementation * String utils in cpp style * Replace parameter methods with start() method * MutexType to Mutex::Type * Kernel c to cpp style * Cleanup event flag * More cpp conversions * Test fixes * Updated ideas docs
31 lines
816 B
C++
31 lines
816 B
C++
#pragma once
|
|
|
|
#include "app/AppManifest.h"
|
|
#include "hal/Configuration.h"
|
|
#include "service/ServiceManifest.h"
|
|
#include "TactilityConfig.h"
|
|
|
|
namespace tt {
|
|
|
|
typedef struct {
|
|
const hal::Configuration* hardware;
|
|
// List of user applications
|
|
const app::AppManifest* const apps[TT_CONFIG_APPS_LIMIT];
|
|
const service::ServiceManifest* const services[TT_CONFIG_SERVICES_LIMIT];
|
|
const char* autoStartAppId;
|
|
} Configuration;
|
|
|
|
/**
|
|
* Attempts to initialize Tactility and all configured hardware.
|
|
* @param config
|
|
*/
|
|
void run(const Configuration& config);
|
|
|
|
/**
|
|
* While technically nullable, this instance is always set if tt_init() succeeds.
|
|
* @return the Configuration instance that was passed on to tt_init() if init is successful
|
|
*/
|
|
const Configuration* _Nullable getConfiguration();
|
|
|
|
} // namespace
|