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.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of RAJANGAM_REVIEW_BAE_CODE by
Diff: BCN.cpp
- Revision:
- 16:f9e484dc505e
- Parent:
- 14:a9588f443f1a
- Child:
- 18:3662058a7c10
--- a/BCN.cpp Tue Apr 19 21:27:07 2016 +0000
+++ b/BCN.cpp Thu May 12 10:56:44 2016 +0000
@@ -297,9 +297,9 @@
void Init_BEACON_HW()
{
- wait(0.1);
+ wait(0.1f);
cs=1; // chip must be deselected
- wait(0.1);
+ wait(0.1f);
spi.format(8,0);
spi.frequency(10000000); //10MHz SCLK
@@ -308,6 +308,7 @@
pc_bcn.printf("spi connection valid\r\n");
else
{pc_bcn.printf("error in spi connection\r\n");
+ pc_bcn.printf("readreg(RF22_REG_00_DEVICE_TYPE = %x\r\n",readreg(RF22_REG_00_DEVICE_TYPE));
reset_rfm();
}
