[diag] move factory diags into core (#4010)

- Simplifies make files by not having to deal with separate library.
- Combine factory diags source into single source file.
This commit is contained in:
Jonathan Hui
2019-07-23 08:47:16 -07:00
committed by GitHub
parent a5124493d9
commit e87bc42184
35 changed files with 900 additions and 920 deletions
+10 -4
View File
@@ -417,9 +417,11 @@ exit:
// Diag
//
void otPlatDiagProcess(int argc, char *argv[], char *aOutput)
void otPlatDiagProcess(otInstance *aInstance, int argc, char *argv[], char *aOutput, size_t aOutputMaxLen)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(argc);
OT_UNUSED_VARIABLE(aOutputMaxLen);
// no more diagnostics features for Posix platform
sprintf(aOutput, "diag feature '%s' is not supported\r\n", argv[0]);
@@ -435,15 +437,19 @@ bool otPlatDiagModeGet()
return sDiagMode;
}
void otPlatDiagAlarmFired(otInstance *)
void otPlatDiagChannelSet(uint8_t)
{
}
void otPlatDiagRadioTransmitDone(otInstance *, otRadioFrame *, otError)
void otPlatDiagTxPowerSet(int8_t)
{
}
void otPlatDiagRadioReceiveDone(otInstance *, otRadioFrame *, otError)
void otPlatDiagRadioReceived(otInstance *, otRadioFrame *, otError)
{
}
void otPlatDiagAlarmCallback(otInstance *)
{
}