[cc1352] fixes for integration with Texas Instruments examples (#3799)

* Fix otPlatRadioEnable always returning busy error

* Remove const from constructors
This commit is contained in:
ltaoti
2019-05-09 14:20:11 -07:00
committed by Jonathan Hui
parent 505ba9cbeb
commit 37f3a201bb
5 changed files with 5 additions and 2 deletions
+1
View File
@@ -1245,6 +1245,7 @@ otError otPlatRadioEnable(otInstance *aInstance)
GPIO_writeDio(IOID_30, 0);
sState = cc1352_stateSleep;
error = OT_ERROR_NONE;
}
exit:
+1
View File
@@ -1170,6 +1170,7 @@ otError otPlatRadioEnable(otInstance *aInstance)
otEXPECT_ACTION(rfCorePowerOn() == CMDSTA_Done, error = OT_ERROR_FAILED);
otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED);
sState = cc2650_stateSleep;
error = OT_ERROR_NONE;
}
exit:
+1
View File
@@ -1225,6 +1225,7 @@ otError otPlatRadioEnable(otInstance *aInstance)
otEXPECT_ACTION(rfCoreSendEnableCmd() == DONE_OK, error = OT_ERROR_FAILED);
sState = cc2652_stateSleep;
error = OT_ERROR_NONE;
}
exit:
+1 -1
View File
@@ -48,7 +48,7 @@
namespace ot {
namespace MeshCoP {
Dataset::Dataset(const Tlv::Type aType)
Dataset::Dataset(Tlv::Type aType)
: mUpdateTime(0)
, mLength(0)
, mType(aType)
+1 -1
View File
@@ -50,7 +50,7 @@
namespace ot {
namespace MeshCoP {
DatasetLocal::DatasetLocal(Instance &aInstance, const Tlv::Type aType)
DatasetLocal::DatasetLocal(Instance &aInstance, Tlv::Type aType)
: InstanceLocator(aInstance)
, mUpdateTime(0)
, mType(aType)