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 BAE_CODE_MARCH_2017 by
Diff: BCN.cpp
- Revision:
- 47:d59ba66229ce
- Parent:
- 39:670133e7ffd8
- Child:
- 49:61c9f28332ba
--- a/BCN.cpp Tue Jul 05 13:44:15 2016 +0000 +++ b/BCN.cpp Thu Jul 07 14:34:00 2016 +0000 @@ -6,10 +6,10 @@ //Takes max 4 sec in void FCTN_BCN_TX_MAIN() (temp.calc. + long_beacon + short_beacon) Serial pc_bcn(USBTX, USBRX); //tx,rx -SPI spi(D11, D12, D13); // mosi, miso, sclk -DigitalInOut 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(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 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 @@ -32,7 +32,7 @@ uint8_t SHORT_HK_data[15]; extern uint8_t BCN_LONG_MSG_TYPE; extern uint8_t LONG_HK_data[2][134]; -extern DigitalInOut BCN_SW; +extern DigitalOut BCN_SW; extern float EPS_BTRY_TMP_AVG; extern BAE_HK_quant quant_data; @@ -40,8 +40,8 @@ extern Timer BAE_uptime; extern Timer I2C_last; extern void RETURN_UPTIME(float,uint8_t*,uint8_t*,uint8_t*); -extern DigitalInOut CDMS_OC_FAULT; -extern DigitalInOut EPS_CHARGER_STATUS; +extern DigitalIn CDMS_OC_FAULT; +extern DigitalIn EPS_CHARGER_STATUS; extern uint8_t crc8_short(); void SHORT_HK_data_AQ() @@ -115,6 +115,7 @@ Init_BEACON_HW(); if( BCN_TX_STATUS == BCN_INIT_SUCCESS ) { + pc_bcn.printf("\n\r transmitting"); //Measure and store BCN temperature in BCN_TS_BUFFER uint8_t temp_temp = check_Temperature(); if( temp_temp != 0xFF )