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.
Diff: main.cpp
- Revision:
- 25:57de395d89aa
- Parent:
- 24:f8fea5e5bf73
- Child:
- 26:5c264e20402f
--- a/main.cpp Tue Jul 23 04:33:02 2013 +0000 +++ b/main.cpp Tue Jul 23 06:03:27 2013 +0000 @@ -21,7 +21,7 @@ #include "menu.h" #include "parameters.h" #include "handlers.h" -#define DEBUG +//#define DEBUG Serial pc(USBTX, USBRX); // serial io SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk @@ -323,6 +323,7 @@ pc.printf("Attenuation for RF out1 is %.1f dB\n", cha1_amp*5.0/10.0); pc.printf("Phase shift for RF out2 is %d degrees\n", cha2_pha*-7); pc.printf("Attenuation for RF out2 is %.1f dB\n", cha2_amp*5.0/10.0); + pc.printf("SPI stream(b7-b0 a7-a0) in hex: %c%c%c%c\n", hex2char(cha2_amp), hex2char(cha2_pha), hex2char(cha1_amp), hex2char(cha1_pha)); pc.printf("%s", msg_ret); pc.getc(); state = MODE_IDLE;