From 155a688d11b164573cb9d5dbd7663e15bda34fdb Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Thu, 7 Mar 2013 10:35:49 -0700 Subject: [PATCH] updated rffc test/commments --- firmware/common/rffc5071.c | 4 ++-- firmware/common/rffc5071.h | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/firmware/common/rffc5071.c b/firmware/common/rffc5071.c index 5e2e9a19..e5a0c3e8 100644 --- a/firmware/common/rffc5071.c +++ b/firmware/common/rffc5071.c @@ -535,7 +535,7 @@ void rffc5071_set_gpo(uint8_t gpo) int main(int ac, char **av) { rffc5071_setup(); - rffc5071_tx(); + rffc5071_tx(0); rffc5071_set_frequency(500, 0); rffc5071_set_frequency(525, 0); rffc5071_set_frequency(550, 0); @@ -543,7 +543,7 @@ int main(int ac, char **av) rffc5071_set_frequency(1525, 0); rffc5071_set_frequency(1550, 0); rffc5071_disable(); - rffc5071_rx(); + rffc5071_rx(0); rffc5071_disable(); rffc5071_rxtx(); rffc5071_disable(); diff --git a/firmware/common/rffc5071.h b/firmware/common/rffc5071.h index 9b81fd46..f55bf9a7 100644 --- a/firmware/common/rffc5071.h +++ b/firmware/common/rffc5071.h @@ -36,12 +36,12 @@ extern uint32_t rffc5071_regs_dirty; * RF switches on Jawbreaker are controlled by General Purpose Outputs (GPO) on * the RFFC5072. */ -#define SWITCHCTRL_NO_TX_AMP_PWR (1 << 0) /* turn off TX amp power */ -#define SWITCHCTRL_AMP_BYPASS (1 << 1) /* bypass amp section */ -#define SWITCHCTRL_TX (1 << 2) /* 1 for TX mode, 0 for RX mode */ -#define SWITCHCTRL_MIX_BYPASS (1 << 3) /* bypass RFFC5072 mixer section */ -#define SWITCHCTRL_HP (1 << 4) /* 1 for high-pass, 0 for low-pass */ -#define SWITCHCTRL_NO_RX_AMP_PWR (1 << 5) /* turn off RX amp power */ +#define SWITCHCTRL_NO_TX_AMP_PWR (1 << 0) /* GPO1 turn off TX amp power */ +#define SWITCHCTRL_AMP_BYPASS (1 << 1) /* GPO2 bypass amp section */ +#define SWITCHCTRL_TX (1 << 2) /* GPO3 1 for TX mode, 0 for RX mode */ +#define SWITCHCTRL_MIX_BYPASS (1 << 3) /* GPO4 bypass RFFC5072 mixer section */ +#define SWITCHCTRL_HP (1 << 4) /* GPO5 1 for high-pass, 0 for low-pass */ +#define SWITCHCTRL_NO_RX_AMP_PWR (1 << 5) /* GPO6 turn off RX amp power */ /* * Safe (initial) switch settings turn off both amplifiers and enable both amp