mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/: rearranged cwtest/atrf-path to be more clear about reset and do re-init
- include/cwtest.h (cw_test_needs_reset), lib/cwtest.c (cw_test_needs_reset): new function to indicate all cases where the transceiver needs to be reset (instead of using SLP_TR) - lib/cwtest.c (cw_test_end): use cw_test_needs_reset instead of open-coding the decision - lib/cwtest.c (enter_test_mode_230, start_test_mode_231): always wait for the PLL to lock. Contrary to the assumption in the previous commit, we should always see this interrupt. - atrf-path/atrf-path.c (sample): initialize the transceiver if we had to reset it - atrf-path/atrf-path.c (sample), atrf-path/atrf-path.c (do_half_sweep): moved the tTR19 delay to "sweep", so that all branches share it and it is taken only once
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "atrf.h"
|
||||
|
||||
|
||||
int cw_test_needs_reset(struct atrf_dsc *dsc);
|
||||
void cw_test_begin(struct atrf_dsc *dsc, uint8_t cont_tx);
|
||||
void cw_test_resume(struct atrf_dsc *dsc);
|
||||
void cw_test_end(struct atrf_dsc *dsc);
|
||||
|
||||
Reference in New Issue
Block a user