mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +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);
|
||||
|
||||
sState = cc1352_stateSleep;
|
||||
error = OT_ERROR_NONE;
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user