1
0
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:
Werner Almesberger
2011-06-13 14:24:59 -03:00
parent 8c00833542
commit 9ef447865b
3 changed files with 19 additions and 12 deletions

View File

@@ -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);