1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 00:14:59 +02:00

fw3/: remove probably useless RF debug output code from board.c

- board.h, board.c: removed rf_init, rf_send, and "wr"
This commit is contained in:
Werner Almesberger 2011-02-14 12:49:44 -03:00
parent f9f0d16f6e
commit 10fb0146c3
2 changed files with 0 additions and 39 deletions

View File

@ -101,39 +101,3 @@ void board_init(void)
OUT(nRST_RF); /* resets the transceiver */ OUT(nRST_RF); /* resets the transceiver */
OUT(SLP_TR); OUT(SLP_TR);
} }
static void wr(uint8_t reg, uint8_t val)
{
spi_begin();
spi_send(AT86RF230_REG_WRITE | reg);
spi_send(val);
spi_end();
}
void rf_init(void)
{
wr(REG_TRX_STATE, TRX_CMD_TRX_OFF);
wr(REG_IRQ_MASK, 0xff);
_delay_us(50);
}
void rf_send(const char *s)
{
const char *p;
int len = 0;
wr(REG_TRX_STATE, TRX_CMD_PLL_ON);
for (p = s; *p; p++)
len++;
spi_begin();
spi_send(AT86RF230_BUF_WRITE);
spi_send(len);
while (*s)
spi_send(*s++);
spi_end();
wr(REG_TRX_STATE, TRX_CMD_TX_START);
_delay_ms(10);
}

View File

@ -61,7 +61,4 @@ void led(int on);
void panic(void); void panic(void);
void board_init(void); void board_init(void);
void rf_init(void);
void rf_send(const char *s);
#endif /* !BOARD_H */ #endif /* !BOARD_H */