summaryrefslogtreecommitdiff
path: root/software/hhd70dongle
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-01-27 17:47:24 +0000
committerChristian Pointner <equinox@mur.at>2013-01-27 17:47:24 +0000
commitec00d4ab268624e8f4a81e78304864f8bf361dc5 (patch)
tree6bd2a44f88d54dc5e9904b2047e215612e2ce876 /software/hhd70dongle
parentfixed page title (diff)
upgraded avr utils from spreadspace
git-svn-id: https://svn.spreadspace.org/mur.sat@662 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r--software/hhd70dongle/Makefile2
-rw-r--r--software/hhd70dongle/c1101lib.c2
-rw-r--r--software/hhd70dongle/hhd70dongle.c4
3 files changed, 7 insertions, 1 deletions
diff --git a/software/hhd70dongle/Makefile b/software/hhd70dongle/Makefile
index 002ca85..29dca09 100644
--- a/software/hhd70dongle/Makefile
+++ b/software/hhd70dongle/Makefile
@@ -41,6 +41,8 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT
LUFA_OPTS += -D USB_MANUFACTURER="L\"mur.sat\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../avr.include.mk
program0: RESET_PARAM:=/dev/ttyACM0
diff --git a/software/hhd70dongle/c1101lib.c b/software/hhd70dongle/c1101lib.c
index ddbd28c..1fbb2fc 100644
--- a/software/hhd70dongle/c1101lib.c
+++ b/software/hhd70dongle/c1101lib.c
@@ -368,7 +368,7 @@ void c1101_init_ook_beacon(void)
// Base frequency = 435.199677
// Channel number = 0
// PA table
- char const pa_table[8] = {0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00};
+ char const pa_table[8] = {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
//reset C1101
c1101_spi_strobe_command(SPIC1101_ADDR_SRES);
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c
index b328d55..d031a4a 100644
--- a/software/hhd70dongle/hhd70dongle.c
+++ b/software/hhd70dongle/hhd70dongle.c
@@ -196,6 +196,10 @@ int main(void)
enable_rx_part=false;
enable_tx_part=false;
c1101_init_ook_beacon();
+ hhd70_palna_txmode();
+ }
+ else {
+ hhd70_palna_rxmode();
}
print_part_status();
}