mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-19 22:25:35 -04:00
* Fix of the issue that source clock for PWM module was improperly assumed to be derived from AHB_CLK, while in reality it is derived from IPG_CLK, what resulted in module generating signal with 4 times lower frequency than the configured one. * Cleanups.
17 lines
419 B
C++
17 lines
419 B
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "service-evtmgr/torch.hpp"
|
|
#include "bsp/torch/torch.hpp"
|
|
|
|
// Static API for torch
|
|
|
|
namespace event::service::api
|
|
{
|
|
bool isTorchOn()
|
|
{
|
|
auto isOn = bsp::torch::getState();
|
|
return isOn == bsp::torch::State::On;
|
|
}
|
|
} // namespace event::service::api
|