| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title Os/Arduino/DefaultRawTime.cpp | ||
| 3 | // \brief sets default Os::RawTime to no-op stub implementation via linker | ||
| 4 | // ====================================================================== | ||
| 5 | #include "Os/Delegate.hpp" | ||
| 6 | #include "fprime-samd/Drv/RtcDriver/RawTime.hpp" | ||
| 7 | |||
| 8 | namespace Os { | ||
| 9 | |||
| 10 | //! \brief get a delegate for RawTimeInterface that intercepts calls for stub RawTime usage | ||
| 11 | //! \param aligned_new_memory: aligned memory to fill | ||
| 12 | //! \param to_copy: pointer to copy-constructor input | ||
| 13 | //! \return: pointer to delegate | ||
| 14 | ✗ | RawTimeInterface* RawTimeInterface::getDelegate(RawTimeHandleStorage& aligned_placement_new_memory, | |
| 15 | const RawTimeInterface* to_copy, | ||
| 16 | Os::RawTimeSource source) { | ||
| 17 | ✗ | return Os::Delegate::makeDelegate<RawTimeInterface, Os::Samd21::Samd21RawTime, RawTimeHandleStorage>( | |
| 18 | ✗ | aligned_placement_new_memory, to_copy); | |
| 19 | } | ||
| 20 | |||
| 21 | } // namespace Os | ||
| 22 |