mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
tools/: fix artf_at86rf23[01] (should be atrf...) typo
This commit is contained in:
@@ -86,7 +86,7 @@ static enum atrf_chip_id identify(struct atrf_dsc *dsc)
|
||||
switch (version) {
|
||||
case 1: /* rev A */
|
||||
case 2: /* rev B */
|
||||
return artf_at86rf230;
|
||||
return atrf_at86rf230;
|
||||
default:
|
||||
return atrf_unknown_chip;
|
||||
}
|
||||
@@ -94,7 +94,7 @@ static enum atrf_chip_id identify(struct atrf_dsc *dsc)
|
||||
case 3: /* AT86RF231 */
|
||||
switch (version) {
|
||||
case 2: /* rev A */
|
||||
return artf_at86rf231;
|
||||
return atrf_at86rf231;
|
||||
default:
|
||||
return atrf_unknown_chip;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* lib/cwtest.c - Set up AT86RF230/231 constant wave test mode
|
||||
*
|
||||
* Written 2010-2011 by Werner Almesberger
|
||||
* Copyright 2010-2011 Werner Almesberger
|
||||
* Written 2010-2011, 2013 by Werner Almesberger
|
||||
* Copyright 2010-2011, 2013 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +30,7 @@ int cw_test_needs_reset(struct atrf_dsc *dsc)
|
||||
{
|
||||
if (atrf_usb_handle(dsc))
|
||||
return 1;
|
||||
if (atrf_identify(dsc) == artf_at86rf230)
|
||||
if (atrf_identify(dsc) == atrf_at86rf230)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
@@ -111,11 +111,11 @@ static void start_test_mode_231(struct atrf_dsc *dsc)
|
||||
void cw_test_begin(struct atrf_dsc *dsc, uint8_t cont_tx)
|
||||
{
|
||||
switch (atrf_identify(dsc)) {
|
||||
case artf_at86rf230:
|
||||
case atrf_at86rf230:
|
||||
enter_test_mode_230(dsc, cont_tx);
|
||||
last_cont_tx = cont_tx;
|
||||
break;
|
||||
case artf_at86rf231:
|
||||
case atrf_at86rf231:
|
||||
prepare_test_mode_231(dsc, cont_tx);
|
||||
start_test_mode_231(dsc);
|
||||
break;
|
||||
@@ -128,10 +128,10 @@ void cw_test_begin(struct atrf_dsc *dsc, uint8_t cont_tx)
|
||||
void cw_test_resume(struct atrf_dsc *dsc)
|
||||
{
|
||||
switch (atrf_identify(dsc)) {
|
||||
case artf_at86rf230:
|
||||
case atrf_at86rf230:
|
||||
enter_test_mode_230(dsc, last_cont_tx);
|
||||
break;
|
||||
case artf_at86rf231:
|
||||
case atrf_at86rf231:
|
||||
start_test_mode_231(dsc);
|
||||
break;
|
||||
default:
|
||||
@@ -142,7 +142,7 @@ void cw_test_resume(struct atrf_dsc *dsc)
|
||||
|
||||
void cw_test_end(struct atrf_dsc *dsc)
|
||||
{
|
||||
if (atrf_identify(dsc) == artf_at86rf231)
|
||||
if (atrf_identify(dsc) == atrf_at86rf231)
|
||||
atrf_reg_write(dsc, REG_PART_NUM, 0);
|
||||
|
||||
atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_FORCE_TRX_OFF);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* lib/misctxrx.c - Miscellaenous transceiver helper functions
|
||||
*
|
||||
* Written 2010-2011 by Werner Almesberger
|
||||
* Copyright 2010-2011 Werner Almesberger
|
||||
* Written 2010-2011, 2013 by Werner Almesberger
|
||||
* Copyright 2010-2011, 2013 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -146,11 +146,11 @@ void set_power_step(struct atrf_dsc *dsc, int power, int crc)
|
||||
uint8_t tmp;
|
||||
|
||||
switch (atrf_identify(dsc)) {
|
||||
case artf_at86rf230:
|
||||
case atrf_at86rf230:
|
||||
atrf_reg_write(dsc, REG_PHY_TX_PWR,
|
||||
(crc ? TX_AUTO_CRC_ON_230 : 0) | power);
|
||||
break;
|
||||
case artf_at86rf231:
|
||||
case atrf_at86rf231:
|
||||
tmp = atrf_reg_read(dsc, REG_PHY_TX_PWR);
|
||||
tmp = (tmp & ~TX_PWR_MASK) | power;
|
||||
atrf_reg_write(dsc, REG_PHY_TX_PWR, tmp);
|
||||
@@ -166,9 +166,9 @@ void set_power_step(struct atrf_dsc *dsc, int power, int crc)
|
||||
static const double *tx_power_table(struct atrf_dsc *dsc)
|
||||
{
|
||||
switch (atrf_identify(dsc)) {
|
||||
case artf_at86rf230:
|
||||
case atrf_at86rf230:
|
||||
return tx_pwr_230;
|
||||
case artf_at86rf231:
|
||||
case atrf_at86rf231:
|
||||
return tx_pwr_231;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user