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: TARGET_MOTE_L152RC/board.cpp
- Revision:
- 6:59ba1113b3c6
- Parent:
- 5:1652e04809fb
--- a/TARGET_MOTE_L152RC/board.cpp Mon Feb 05 15:03:27 2018 -0800
+++ b/TARGET_MOTE_L152RC/board.cpp Mon Feb 12 17:23:14 2018 -0800
@@ -1,4 +1,4 @@
-#include "platform.h"
+#include "user_platform.h"
#define RADIO_RESET PC_2 //NorAm_Mote Reset_sx
#define RADIO_MOSI PB_15 //NorAm_Mote SPI2 Mosi
@@ -21,6 +21,7 @@
DigitalOut rfsw1(RFSW1);
DigitalOut rfsw2(RFSW2);
+DigitalOut pd2(PD_2);
// txpow: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
const uint8_t PaBTable[20] = { 0, 0, 0, 0, 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15 };
@@ -111,10 +112,12 @@
cmd_ocp(80);
radio.write_reg(REG_PACONFIG, radio.RegPaConfig.octet);
+ printf("PaConfig:%02x, pd2:%u\r\n", radio.RegPaConfig.octet, pd2.read());
}
void board_init()
{
+ pd2 = 1;
cmd_op(26);
}