@@ -90,7 +90,7 @@ void nrf_802154_tx_ack_started(void){}
90
90
91
91
void test_continuous_carrier_begin_ShallDoNothingIfOutOfTimeslot (void )
92
92
{
93
- nrf_raal_timeslot_is_granted_ExpectAndReturn ( false) ;
93
+ m_timeslot_is_granted = false;
94
94
95
95
continuous_carrier_init (true);
96
96
}
@@ -103,8 +103,6 @@ static void verify_continuous_carrier_begin_periph_setup(void)
103
103
uint32_t task_addr ;
104
104
uint32_t fork_addr ;
105
105
106
- nrf_raal_timeslot_is_granted_ExpectAndReturn (true);
107
-
108
106
nrf_fem_control_ppi_enable_Expect (NRF_FEM_CONTROL_PA_PIN , NRF_TIMER_CC_CHANNEL2 );
109
107
nrf_fem_control_timer_set_Expect (NRF_FEM_CONTROL_PA_PIN , NRF_TIMER_CC_CHANNEL2 , NRF_TIMER_SHORT_COMPARE2_STOP_MASK );
110
108
fork_addr = rand ();
@@ -131,6 +129,8 @@ static void verify_continuous_carrier_begin_periph_setup(void)
131
129
132
130
void test_continuous_carrier_begin_ShallPrepareHardwareToTransmitCarrier (void )
133
131
{
132
+ m_timeslot_is_granted = true;
133
+
134
134
verify_continuous_carrier_begin_periph_setup ();
135
135
136
136
nrf_radio_task_trigger_Expect (NRF_RADIO_TASK_DISABLE );
@@ -142,6 +142,8 @@ void test_continuous_carrier_begin_ShallPrepareHardwareToTransmitCarrier(void)
142
142
143
143
void test_continuous_carrier_begin_ShallTriggerDisableIfRequestedByArgument (void )
144
144
{
145
+ m_timeslot_is_granted = true;
146
+
145
147
verify_continuous_carrier_begin_periph_setup ();
146
148
147
149
nrf_radio_task_trigger_Expect (NRF_RADIO_TASK_DISABLE );
@@ -151,6 +153,8 @@ void test_continuous_carrier_begin_ShallTriggerDisableIfRequestedByArgument(void
151
153
152
154
void test_continuous_carrier_begin_ShallNotTriggerDisableIfRadioIsRampingDown (void )
153
155
{
156
+ m_timeslot_is_granted = true;
157
+
154
158
verify_continuous_carrier_begin_periph_setup ();
155
159
156
160
nrf_radio_state_get_ExpectAndReturn (NRF_RADIO_STATE_RX_DISABLE );
@@ -160,6 +164,8 @@ void test_continuous_carrier_begin_ShallNotTriggerDisableIfRadioIsRampingDown(vo
160
164
161
165
void test_continuous_carrier_begin_ShallNotTriggerDisableIfEguEventIsSet (void )
162
166
{
167
+ m_timeslot_is_granted = true;
168
+
163
169
verify_continuous_carrier_begin_periph_setup ();
164
170
165
171
nrf_radio_state_get_ExpectAndReturn (NRF_RADIO_STATE_DISABLED );
@@ -170,6 +176,8 @@ void test_continuous_carrier_begin_ShallNotTriggerDisableIfEguEventIsSet(void)
170
176
171
177
void test_continuous_carrier_begin_ShallTriggerDisableIfRadioIsDisabledAndEguDidNotWork (void )
172
178
{
179
+ m_timeslot_is_granted = true;
180
+
173
181
verify_continuous_carrier_begin_periph_setup ();
174
182
175
183
nrf_radio_state_get_ExpectAndReturn (NRF_RADIO_STATE_DISABLED );
@@ -185,29 +193,29 @@ void test_continuous_carrier_begin_ShallTriggerDisableIfRadioIsDisabledAndEguDid
185
193
186
194
void test_continuous_carrier_terminate_ShallDoNothingOutOfTimeslot (void )
187
195
{
196
+ m_timeslot_is_granted = false;
197
+
188
198
nrf_ppi_channel_disable_Expect (PPI_DISABLED_EGU );
189
199
nrf_ppi_channel_disable_Expect (PPI_EGU_RAMP_UP );
190
200
191
201
nrf_fem_control_ppi_disable_Expect (NRF_FEM_CONTROL_PA_PIN );
192
202
nrf_fem_control_timer_reset_Expect (NRF_FEM_CONTROL_PA_PIN , NRF_TIMER_SHORT_COMPARE2_STOP_MASK );
193
203
nrf_fem_control_ppi_fork_clear_Expect (NRF_FEM_CONTROL_PA_PIN , PPI_EGU_RAMP_UP );
194
204
195
- nrf_raal_timeslot_is_granted_ExpectAndReturn (false);
196
-
197
205
continuous_carrier_terminate ();
198
206
}
199
207
200
208
void test_continuous_carrier_terminate_ShallResetPeriphAndTriggerDisableTask (void )
201
209
{
210
+ m_timeslot_is_granted = true;
211
+
202
212
nrf_ppi_channel_disable_Expect (PPI_DISABLED_EGU );
203
213
nrf_ppi_channel_disable_Expect (PPI_EGU_RAMP_UP );
204
214
205
215
nrf_fem_control_ppi_disable_Expect (NRF_FEM_CONTROL_PA_PIN );
206
216
nrf_fem_control_timer_reset_Expect (NRF_FEM_CONTROL_PA_PIN , NRF_TIMER_SHORT_COMPARE2_STOP_MASK );
207
217
nrf_fem_control_ppi_fork_clear_Expect (NRF_FEM_CONTROL_PA_PIN , PPI_EGU_RAMP_UP );
208
218
209
- nrf_raal_timeslot_is_granted_ExpectAndReturn (true);
210
-
211
219
nrf_radio_task_trigger_Expect (NRF_RADIO_TASK_DISABLE );
212
220
213
221
continuous_carrier_terminate ();
0 commit comments