Skip to content

Commit

Permalink
[posix] implement otPlatResetToBootloader()
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed Oct 26, 2023
1 parent 048aa50 commit 18b9204
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/posix/platform/radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,15 @@ otError otPlatRadioReceiveAt(otInstance *aInstance, uint8_t aChannel, uint32_t a
return OT_ERROR_NOT_IMPLEMENTED;
}

#if OPENTHREAD_CONFIG_PLATFORM_BOOTLOADER_MODE_ENABLE
otError otPlatResetToBootloader(otInstance *aInstance)
{
OT_UNUSED_VARIABLE(aInstance);

return GetRadioSpinel().SendReset(SPINEL_RESET_BOOTLOADER);
}
#endif

const otRadioSpinelMetrics *otSysGetRadioSpinelMetrics(void) { return GetRadioSpinel().GetRadioSpinelMetrics(); }

const otRcpInterfaceMetrics *otSysGetRcpInterfaceMetrics(void)
Expand Down

0 comments on commit 18b9204

Please sign in to comment.