mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 11:17:46 +00:00
otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
This commit is contained in:
@@ -40,11 +40,11 @@ using namespace Thread;
|
||||
|
||||
namespace Thread {
|
||||
|
||||
extern "C" void otSignalTaskletPending(void)
|
||||
extern "C" void otSignalTaskletPending(otInstance *)
|
||||
{
|
||||
}
|
||||
|
||||
extern "C" bool otAreTaskletsPending(void)
|
||||
extern "C" bool otAreTaskletsPending(otInstance *)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -59,17 +59,17 @@ extern "C" void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength)
|
||||
(void)aBufLength;
|
||||
}
|
||||
|
||||
extern "C" void otPlatDiagAlarmFired()
|
||||
extern "C" void otPlatDiagAlarmFired(otInstance *)
|
||||
{
|
||||
}
|
||||
|
||||
extern "C" void otPlatDiagRadioTransmitDone(bool aRxPending, ThreadError aError)
|
||||
extern "C" void otPlatDiagRadioTransmitDone(otInstance *, bool aRxPending, ThreadError aError)
|
||||
{
|
||||
(void)aRxPending;
|
||||
(void)aError;
|
||||
}
|
||||
|
||||
extern "C" void otPlatDiagRadioReceiveDone(RadioPacket *aFrame, ThreadError aError)
|
||||
extern "C" void otPlatDiagRadioReceiveDone(otInstance *, RadioPacket *aFrame, ThreadError aError)
|
||||
{
|
||||
(void)aFrame;
|
||||
(void)aError;
|
||||
|
||||
Reference in New Issue
Block a user