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:
pvanhorn
2017-05-19 11:33:38 -07:00
committed by Jonathan Hui
parent 4f5b17ab0b
commit 7862f1107e
16 changed files with 316 additions and 25 deletions
+6
View File
@@ -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)
{
}
+5
View File
@@ -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.
}
+5
View File
@@ -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.
}
+5
View File
@@ -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.
}
+5
View File
@@ -93,3 +93,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
return reason;
}
void otPlatWakeHost(void)
{
// TODO: implement an operation to wake the host from sleep state.
}
+5
View File
@@ -99,3 +99,8 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
return reason;
}
void otPlatWakeHost(void)
{
// TODO: implement an operation to wake the host from sleep state.
}
+5
View File
@@ -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.
}