File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
modules/openthread/platform Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ bool otPlatDiagModeGet(void)
104
104
105
105
void otPlatDiagChannelSet (uint8_t aChannel )
106
106
{
107
- ARG_UNUSED (aChannel );
108
107
sChannel = aChannel ;
108
+ platformRadioChannelSet (aChannel );
109
109
}
110
110
111
111
void otPlatDiagTxPowerSet (int8_t aTxPower )
Original file line number Diff line number Diff line change @@ -70,6 +70,16 @@ void platformUartPanic(void);
70
70
*/
71
71
uint16_t platformRadioChannelGet (otInstance * aInstance );
72
72
73
+ #if defined(CONFIG_OPENTHREAD_DIAG )
74
+ /**
75
+ * Set channel on radio driver.
76
+ *
77
+ * @param[in] aChannel The channel that the radio driver should use for operation.
78
+ *
79
+ */
80
+ void platformRadioChannelSet (uint8_t aChannel );
81
+ #endif /* CONFIG_OPENTHREAD_DIAG */
82
+
73
83
#if defined(CONFIG_IEEE802154_CARRIER_FUNCTIONS )
74
84
/**
75
85
* Start/stop continuous carrier wave transmission.
Original file line number Diff line number Diff line change @@ -722,6 +722,13 @@ uint16_t platformRadioChannelGet(otInstance *aInstance)
722
722
return channel ;
723
723
}
724
724
725
+ #if defined(CONFIG_OPENTHREAD_DIAG )
726
+ void platformRadioChannelSet (uint8_t aChannel )
727
+ {
728
+ channel = aChannel ;
729
+ }
730
+ #endif
731
+
725
732
void otPlatRadioSetPanId (otInstance * aInstance , uint16_t aPanId )
726
733
{
727
734
ARG_UNUSED (aInstance );
You can’t perform that action at this time.
0 commit comments