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 workinQM_10thDec by
Diff: BCN.cpp
- Revision:
- 43:dec54ff03d3f
- Parent:
- 42:413cd8c60cfc
--- a/BCN.cpp Tue Jul 05 18:20:41 2016 +0000 +++ b/BCN.cpp Thu Jul 07 19:45:45 2016 +0000 @@ -4,13 +4,12 @@ #include "pin_config.h" //Check the pin names //Takes max 4 sec in void FCTN_BCN_TX_MAIN() (temp.calc. + long_beacon + short_beacon) - +DigitalOut bcn_sw(PIN14,0); Serial pc_bcn(USBTX, USBRX); //tx,rx -SPI spi(PIN16, PIN17, PIN15); // mosi, miso, sclk //SPI spi(D11, D12, D13); // mosi, miso, sclk +//DigitalOut cs(D10); //slave select or chip select +SPI spi(PIN16, PIN17, PIN15); // mosi, miso, sclk DigitalOut cs(PIN6); //slave select or chip select -//SPI spi(PIN16, PIN17, PIN15); // mosi, miso, sclk -//DigitalOut cs(PIN6); //slave select or chip select Timer t_i;//timer for checking the time taken by (temp.calc. + long_beacon + short_beacon) //Timer t_is;//timer for short_beacon //Timer t_il;//timer for long_beacon