summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Tittelbach <xro@realraum.at>2012-08-25 17:28:52 +0000
committerBernhard Tittelbach <xro@realraum.at>2012-08-25 17:28:52 +0000
commit046f9d86d7c76306ac66fec4fef6b0a39b4aadaa (patch)
tree8b24cb59275a099b024759c736da19faf099585f
parentfinalized dongle 0.2 schematic? (diff)
comments
git-svn-id: https://svn.spreadspace.org/mur.sat@602 7de4ea59-55d0-425e-a1af-a3118ea81d4c
-rw-r--r--software/hhd70dongle/hhd70.h4
-rw-r--r--software/hhd70dongle/hhd70dongle.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/software/hhd70dongle/hhd70.h b/software/hhd70dongle/hhd70.h
index a3df36a..4adeb3e 100644
--- a/software/hhd70dongle/hhd70.h
+++ b/software/hhd70dongle/hhd70.h
@@ -39,8 +39,12 @@
#define CS DDB0
#define SCK DDB1
#define MOSI DDB2
+// MISO DDB3 is also GDO1 (can be used when CS == 0)
#define MISO DDB3
+//GDO2 currently used for RX Buffer Filled Interrupt
#define GDO2 DDB4
+//GDO0 currently only used for c1101 internal temperature sensor
+//GDO0 future use: connect directly to RX/TX Switch (set GDO0_CFG to 0x2F)
#define GDO0 DDB5
#define RE DDB6
#define TE DDB7
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c
index b6e8eeb..30b7a55 100644
--- a/software/hhd70dongle/hhd70dongle.c
+++ b/software/hhd70dongle/hhd70dongle.c
@@ -41,6 +41,14 @@
#include "hhd70.h"
#include "c1101lib.h"
+//todo: move to separte File:
+
+// If TTX_EN goes high, ~ <=500ms before TTX CW Sender forcefully disables our RX/TX Signal Path
+//IF TTX_EN goes low, we have ~ 1min (Beacon Interval) until the next CW Beacon is sent and our RX/TX Signal Path is forcefully disabled
+// Beacon Interval Time can be measured by counting with an interrupt triggered by RTC_SECONDS Input
+//#define TTX_EN <port>
+//#define RTC_SECONDS <port>
+
#define CPU_PRESCALE(n) do { CLKPR = 0x80; CLKPR = (n); } while(0)
char read_buffer[64]; // buffer for reading usb signals