mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-18 15:06:59 -05:00
31 lines
506 B
C++
31 lines
506 B
C++
#include "EventStore.hpp"
|
|
|
|
namespace Store
|
|
{
|
|
// if it grows bigger than these few variables - consider moving it to ram with i.e.
|
|
// delayed construction singletone
|
|
Battery battery;
|
|
|
|
const Battery &Battery::get()
|
|
{
|
|
return battery;
|
|
}
|
|
|
|
Battery &Battery::modify()
|
|
{
|
|
return battery;
|
|
}
|
|
|
|
GSM *GSM::ptr = nullptr;
|
|
|
|
GSM *GSM::get()
|
|
{
|
|
if (!ptr)
|
|
{
|
|
ptr = new GSM();
|
|
}
|
|
return ptr;
|
|
}
|
|
|
|
}; // namespace Store
|