| 4 | static std::shared_ptr<Axp192> axp192 = nullptr; |
| 5 | |
| 6 | std::shared_ptr<Axp192> createAxp192() { |
| 7 | assert(axp192 == nullptr); |
| 8 | auto configuration = std::make_unique<Axp192::Configuration>(device_find_by_name("i2c_internal")); |
| 9 | axp192 = std::make_shared<Axp192>(std::move(configuration)); |
| 10 | return axp192; |
| 11 | } |
| 12 | |
| 13 | std::shared_ptr<Axp192> getAxp192() { |
| 14 | assert(axp192 != nullptr); |
no test coverage detected