mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 15:47:46 +00:00
Add support for the Host Power State feature. (#1772)
* Add support for the Host Power State feature. * Fix compiler ewrrors. * Fix compiler errors round 2. * Add newlines to end of file. * Address review comments. * Arrange to send the power state response again if the first attempt fails. * Fix compiler issue.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <openthread/openthread.h>
|
||||
#include <openthread/cli.h>
|
||||
#include <openthread/platform/uart.h>
|
||||
#include <openthread/platform/misc.h>
|
||||
|
||||
bool skipNextLine = false;
|
||||
|
||||
@@ -83,3 +84,8 @@ EXTERN_C ThreadError otPlatUartSend(const uint8_t *aBuf, uint16_t aBufLength)
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
EXTERN_C void otPlatWakeHost(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -43,3 +43,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
// TODO: Write me!
|
||||
return kPlatResetReason_PowerOn;
|
||||
}
|
||||
|
||||
void otPlatWakeHost(void)
|
||||
{
|
||||
// TODO: implement an operation to wake the host from sleep state.
|
||||
}
|
||||
|
||||
@@ -69,3 +69,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
return kPlatResetReason_Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
void otPlatWakeHost(void)
|
||||
{
|
||||
// TODO: implement an operation to wake the host from sleep state.
|
||||
}
|
||||
|
||||
Executable → Regular
+5
@@ -43,3 +43,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
(void)aInstance;
|
||||
return kPlatResetReason_PowerOn;
|
||||
}
|
||||
|
||||
void otPlatWakeHost(void)
|
||||
{
|
||||
// TODO: implement an operation to wake the host from sleep state.
|
||||
}
|
||||
|
||||
@@ -93,3 +93,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
|
||||
return reason;
|
||||
}
|
||||
|
||||
void otPlatWakeHost(void)
|
||||
{
|
||||
// TODO: implement an operation to wake the host from sleep state.
|
||||
}
|
||||
|
||||
@@ -99,3 +99,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
|
||||
return reason;
|
||||
}
|
||||
|
||||
void otPlatWakeHost(void)
|
||||
{
|
||||
// TODO: implement an operation to wake the host from sleep state.
|
||||
}
|
||||
|
||||
@@ -42,3 +42,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
||||
(void)aInstance;
|
||||
return kPlatResetReason_PowerOn;
|
||||
}
|
||||
|
||||
void otPlatWakeHost(void)
|
||||
{
|
||||
// TODO: implement an operation to wake the host from sleep state.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user