Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of EV-COG-AD3029LZ by
Diff: SimpleSpirit1.cpp
- Revision:
- 8:10967c884e38
- Parent:
- 7:e90fa8f6bc6c
- Child:
- 9:3db68ab23070
diff -r e90fa8f6bc6c -r 10967c884e38 SimpleSpirit1.cpp
--- a/SimpleSpirit1.cpp Fri Oct 21 14:56:55 2016 +0200
+++ b/SimpleSpirit1.cpp Mon Oct 24 08:34:33 2016 +0200
@@ -75,9 +75,11 @@
/* init cube vars */
spirit_on = OFF;
+#ifdef CONTIKI // betzw - TODO
packet_is_prepared = 0;
+ just_got_an_ack = 0;
+#endif // CONTIKI
receiving_packet = 0;
- just_got_an_ack = 0;
last_rssi = 0 ; //MGR
last_lqi = 0 ; //MGR
}
@@ -162,6 +164,7 @@
spirit_gpio_init(&x_gpio_init);
}
+#ifdef CONTIKI // betzw - TODO
/** Prepare the radio with a packet to be sent. **/
int SimpleSpirit1::prepare_contiki(const void *payload, unsigned short payload_len) {
PRINTF("Spirit1: prep %u\n", payload_len);
@@ -265,6 +268,7 @@
return RADIO_TX_OK;
}
+#endif // CONTIKI
int SimpleSpirit1::send(const void *payload, unsigned int payload_len) {
/* Checks if the payload length is supported */
