1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 07:51:55 +02:00

tools/: fix artf_at86rf23[01] (should be atrf...) typo

This commit is contained in:
Werner Almesberger 2013-03-28 14:24:28 -03:00
parent 40c01c4a6d
commit 1de233a7c7
7 changed files with 31 additions and 31 deletions

View File

@ -1,8 +1,8 @@
/*
* atrf-id/atrf-id.c - Identify a ben-wpan AT86RF230 board
*
* 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
@ -135,10 +135,10 @@ static void show_info(struct atrf_dsc *dsc)
case atrf_unknown_chip:
printf("???");
break;
case artf_at86rf230:
case atrf_at86rf230:
printf("AT86RF230");
break;
case artf_at86rf231:
case atrf_at86rf231:
printf("AT86RF231");
break;
default:

View File

@ -112,7 +112,7 @@ static struct atrf_dsc *init_txrx(const char *driver, int trim, unsigned mhz)
atrf_reg_write(dsc, REG_IRQ_MASK, 0xff);
flush_interrupts(dsc);
if (atrf_identify(dsc) == artf_at86rf231)
if (atrf_identify(dsc) == atrf_at86rf231)
wait_for_interrupt(dsc, IRQ_CCA_ED_DONE, IRQ_CCA_ED_DONE, 1);
/* according to table 7-1, 37 us max */
@ -131,10 +131,10 @@ static void set_rate(struct atrf_dsc *dsc, uint8_t rate)
if (!rate)
return;
switch (atrf_identify(dsc)) {
case artf_at86rf230:
case atrf_at86rf230:
fprintf(stderr, "AT86RF230 only supports 250 kbps\n");
break;
case artf_at86rf231:
case atrf_at86rf231:
atrf_reg_write(dsc, REG_TRX_CTRL_2, rate);
break;
default:

View File

@ -1,8 +1,8 @@
/*
* atrf-xtal/atben.c - ATBEN-specific driver and evaluation
*
* Written 2011 by Werner Almesberger
* Copyright 2011 Werner Almesberger
* Written 2011, 2013 by Werner Almesberger
* Copyright 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
@ -59,10 +59,10 @@ static void rf_setup(struct atrf_dsc *dsc, int size, int trim)
/* minimum TX power, maximize delays, disable CRC */
switch (atrf_identify(dsc)) {
case artf_at86rf230:
case atrf_at86rf230:
atrf_reg_write(dsc, REG_PHY_TX_PWR, 0xf);
break;
case artf_at86rf231:
case atrf_at86rf231:
atrf_reg_write(dsc, REG_PHY_TX_PWR, 0xff);
atrf_reg_write(dsc, REG_TRX_CTRL_1, 0);
break;

View File

@ -1,8 +1,8 @@
/*
* include/atrf.h - ATRF access functions library
*
* 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
@ -18,8 +18,8 @@
enum atrf_chip_id {
atrf_unknown_chip = 0,
artf_at86rf230 = 1,
artf_at86rf231 = 2,
atrf_at86rf230 = 1,
atrf_at86rf231 = 2,
};

View File

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

View File

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

View File

@ -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: