blob: afa8b654ec432ae47d2d46059973d36251f841aa [file] [log] [blame]
#include "MbedEventTimeout.h"
#include <drivers/Timeout.h>
namespace chip {
namespace DeviceLayer {
using namespace mbed;
static Timeout mTimeout;
void MbedEventTimeout::AttachTimeout(Callback<void()> func, std::chrono::microseconds t)
{
mTimeout.attach(func, t);
}
void MbedEventTimeout::DetachTimeout()
{
mTimeout.detach();
}
} // namespace DeviceLayer
} // namespace chip