mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
#include <platform/platform.h>
|
||||
#include <platform/radio.h>
|
||||
|
||||
extern "C" void otSignalTaskletPending(void)
|
||||
extern "C" void otSignalTaskletPending(otInstance *)
|
||||
{
|
||||
}
|
||||
|
||||
extern "C" bool otAreTaskletsPending(void)
|
||||
extern "C" bool otAreTaskletsPending(otInstance *)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -51,17 +51,17 @@ extern "C" void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength)
|
||||
(void)aBufLength;
|
||||
}
|
||||
|
||||
extern "C" void otPlatAlarmFired()
|
||||
extern "C" void otPlatAlarmFired(otInstance *)
|
||||
{
|
||||
}
|
||||
|
||||
extern "C" void otPlatRadioTransmitDone(bool aRxPending, ThreadError aError)
|
||||
extern "C" void otPlatRadioTransmitDone(otInstance *, bool aRxPending, ThreadError aError)
|
||||
{
|
||||
(void)aRxPending;
|
||||
(void)aError;
|
||||
}
|
||||
|
||||
extern "C" void otPlatRadioReceiveDone(RadioPacket *aFrame, ThreadError aError)
|
||||
extern "C" void otPlatRadioReceiveDone(otInstance *, RadioPacket *aFrame, ThreadError aError)
|
||||
{
|
||||
(void)aFrame;
|
||||
(void)aError;
|
||||
@@ -147,7 +147,7 @@ void TestDiag()
|
||||
PlatformInit(argc, argv);
|
||||
|
||||
// initialize diagnostics module
|
||||
diagInit();
|
||||
diagInit(NULL);
|
||||
|
||||
// test diagnostics commands
|
||||
VerifyOrQuit(!isDiagEnabled(), "diagnostics mode shoud be disabled as default\n");
|
||||
|
||||
Reference in New Issue
Block a user