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 13, 2023
1 parent f9e5bb7 commit c6f3f6d
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
void otPlatResetToBootloader(otInstance *aInstance)
{
OT_UNUSED_VARIABLE(aInstance);

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

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

const otRcpInterfaceMetrics *otSysGetRcpInterfaceMetrics(void)
Expand Down

0 comments on commit c6f3f6d

Please sign in to comment.