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:
- 2:45642c5198a2
- Parent:
- 0:4fb29d9ee571
- Child:
- 3:0df38cfb1e53
diff -r 260f79310518 -r 45642c5198a2 SimpleSpirit1.cpp
--- a/SimpleSpirit1.cpp Fri Oct 14 08:57:51 2016 +0200
+++ b/SimpleSpirit1.cpp Fri Oct 14 10:42:56 2016 +0200
@@ -32,10 +32,12 @@
/* configure spi */
_spi.format(8, 0); /* 8-bit, mode = 0, [order = SPI_MSB] only available in mbed3 */
_spi.frequency(5000000); // 5MHz
+}
+void SimpleSpirit1::init() {
/* set frequencies */
radio_set_xtal_freq(XTAL_FREQUENCY);
- mgmt_set_freq_base(XTAL_FREQUENCY);
+ mgmt_set_freq_base((uint32_t)BASE_FREQUENCY);
/* restart board */
enter_shutdown();
