1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

libatrf: add option to send a pulse with atrf_slp_tr

- include/atrf.h (atrf_slp_tr), lib/atrf.c (atrf_slp_tr): added pulse
  argument
- atrf-proxy/PROTOCOL, atrf-proxy/atrf-proxy.c (cmd_two, cmd_more):
  added second argument to SLP_TR command
- atrf-xtal/atben.c (atben_sample), lib/cwtest.c (cw_test_end): updated
  for API change
- lib/driver.h (struct atrf_driver): added "pulse" argument to slp_tr
- lib/atben.c (atben_slp_tr), lib/atnet.c (atnet_slp_tr): added support
  for pulse mode
This commit is contained in:
Werner Almesberger
2011-06-05 21:08:48 -03:00
parent 87e06b4e4e
commit 1a3f169e89
9 changed files with 33 additions and 19 deletions

View File

@@ -355,7 +355,7 @@ static uint8_t atben_sram_read(void *handle, uint8_t addr)
/* ----- SLP_TR ------------------------------------------------------------ */
static void atben_slp_tr(void *handle, int on)
static void atben_slp_tr(void *handle, int on, int pulse)
{
struct atben_dsc *dsc = handle;
@@ -363,6 +363,12 @@ static void atben_slp_tr(void *handle, int on)
PDDATS = SLP_TR;
else
PDDATC = SLP_TR;
if (!pulse)
return;
if (on)
PDDATC = SLP_TR;
else
PDDATS = SLP_TR;
}