summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/rf
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-02 20:42:39 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-02 20:42:39 +0100
commit6944437bf492d46f8c39b4dadcd0ff55b7581eda (patch)
tree3a40dcdf690d36e8bd030327343c54fddde62cfb /src/target/firmware/rf
parentd43fadf410e66934ce266cd1a5f96b89d56a9e90 (diff)
Introduce CONFIG_TX_ENABLE and disable Tx support by default
Tx support is considered experimental and potentially dangerous. Thus, the default build of the firmware does not have Tx support enabled. If you want Tx support, compile with -DCONFIG_TX_ENABLE by uncommenting the apropriate line in Makefile.inc
Diffstat (limited to 'src/target/firmware/rf')
-rw-r--r--src/target/firmware/rf/trf6151.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index a95fa9a0..de80ba98 100644
--- a/src/target/firmware/rf/trf6151.c
+++ b/src/target/firmware/rf/trf6151.c
@@ -446,6 +446,7 @@ void trf6151_rx_window(int16_t start_qbits, uint16_t arfcn, uint8_t vga_dbm, int
/* prepare a Tx window with the TRF6151 finished at time 'start' (in qbits) */
void trf6151_tx_window(int16_t start_qbits, uint16_t arfcn)
{
+#ifdef CONFIG_TX_ENABLE
int16_t start_pll_qbits;
/* power up at the right time _before_ the 'start_qbits' point in time */
@@ -456,4 +457,5 @@ void trf6151_tx_window(int16_t start_qbits, uint16_t arfcn)
trf6151_set_mode(TRF6151_TX);
/* FIXME: power down at the right time again */
+#endif
}