1
0
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:
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

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