projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Reset interrupt flags before TX in CC1200 driver
[fw/altos]
/
src
/
drivers
/
ao_cc1200.c
diff --git
a/src/drivers/ao_cc1200.c
b/src/drivers/ao_cc1200.c
index 8f31d2b429104daf2d966374c404e6669d28ccc5..930680b286722ec7bf96c0eb6a0faa886d3b515f 100644
(file)
--- a/
src/drivers/ao_cc1200.c
+++ b/
src/drivers/ao_cc1200.c
@@
-28,8
+28,14
@@
static uint8_t ao_radio_abort; /* radio operation should abort */
int8_t ao_radio_rssi; /* Last received RSSI value */
int8_t ao_radio_rssi; /* Last received RSSI value */
+#ifndef CC1200_DEBUG
#define CC1200_DEBUG 0
#define CC1200_DEBUG 0
+#endif
+
+#ifndef CC1200_LOW_LEVEL_DEBUG
#define CC1200_LOW_LEVEL_DEBUG 0
#define CC1200_LOW_LEVEL_DEBUG 0
+#endif
+
#define CC1200_TRACE 0
#define CC1200_APRS_TRACE 0
#define CC1200_TRACE 0
#define CC1200_APRS_TRACE 0
@@
-742,6
+748,8
@@
ao_rdf_start(uint8_t len)
static void
ao_radio_run(void)
{
static void
ao_radio_run(void)
{
+ ao_radio_wake = 0;
+ ao_radio_abort = 0;
ao_radio_start_tx();
ao_radio_wait_isr(0);
if (!ao_radio_wake)
ao_radio_start_tx();
ao_radio_wait_isr(0);
if (!ao_radio_wake)
@@
-858,6
+866,7
@@
ao_radio_send_aprs(ao_radio_fill_func fill)
uint8_t started = 0;
uint8_t fifo_space;
uint8_t started = 0;
uint8_t fifo_space;
+ ao_radio_abort = 0;
ao_radio_get(0xff);
fifo_space = CC1200_FIFO_SIZE;
while (!done) {
ao_radio_get(0xff);
fifo_space = CC1200_FIFO_SIZE;
while (!done) {