mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 13:38:07 +00:00
[cc1352] fixes for integration with Texas Instruments examples (#3799)
* Fix otPlatRadioEnable always returning busy error * Remove const from constructors
This commit is contained in:
@@ -1245,6 +1245,7 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
|||||||
GPIO_writeDio(IOID_30, 0);
|
GPIO_writeDio(IOID_30, 0);
|
||||||
|
|
||||||
sState = cc1352_stateSleep;
|
sState = cc1352_stateSleep;
|
||||||
|
error = OT_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|||||||
@@ -1170,6 +1170,7 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
|||||||
otEXPECT_ACTION(rfCorePowerOn() == CMDSTA_Done, error = OT_ERROR_FAILED);
|
otEXPECT_ACTION(rfCorePowerOn() == CMDSTA_Done, error = OT_ERROR_FAILED);
|
||||||
otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED);
|
otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED);
|
||||||
sState = cc2650_stateSleep;
|
sState = cc2650_stateSleep;
|
||||||
|
error = OT_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|||||||
@@ -1225,6 +1225,7 @@ otError otPlatRadioEnable(otInstance *aInstance)
|
|||||||
otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED);
|
otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED);
|
||||||
|
|
||||||
sState = cc2652_stateSleep;
|
sState = cc2652_stateSleep;
|
||||||
|
error = OT_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
namespace ot {
|
namespace ot {
|
||||||
namespace MeshCoP {
|
namespace MeshCoP {
|
||||||
|
|
||||||
Dataset::Dataset(const Tlv::Type aType)
|
Dataset::Dataset(Tlv::Type aType)
|
||||||
: mUpdateTime(0)
|
: mUpdateTime(0)
|
||||||
, mLength(0)
|
, mLength(0)
|
||||||
, mType(aType)
|
, mType(aType)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
namespace ot {
|
namespace ot {
|
||||||
namespace MeshCoP {
|
namespace MeshCoP {
|
||||||
|
|
||||||
DatasetLocal::DatasetLocal(Instance &aInstance, const Tlv::Type aType)
|
DatasetLocal::DatasetLocal(Instance &aInstance, Tlv::Type aType)
|
||||||
: InstanceLocator(aInstance)
|
: InstanceLocator(aInstance)
|
||||||
, mUpdateTime(0)
|
, mUpdateTime(0)
|
||||||
, mType(aType)
|
, mType(aType)
|
||||||
|
|||||||
Reference in New Issue
Block a user