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: mbed X_NUCLEO_PLC01A1
Diff: main.cpp
- Revision:
- 2:bf16a2ba8662
- Parent:
- 1:331915faf16e
- Child:
- 4:17b45bcd5b40
--- a/main.cpp Fri Feb 19 14:46:29 2016 +0000
+++ b/main.cpp Tue Feb 23 10:40:49 2016 +0000
@@ -2,8 +2,8 @@
******************************************************************************
* @file main.cpp
* @author AST/CLs
- * @version V1.0.0
- * @date Feb 5th, 2016
+ * @version V1.1.0
+ * @date February 23rd, 2016
* @brief mbed test application for the STMicroelectronics X-NUCLEO-PLC01A1
* PLC Expansion Board.
******************************************************************************
@@ -39,13 +39,12 @@
/* Includes ------------------------------------------------------------------*/
-/* Component specific header files. */
-#include "PLC_class.h"
-#include "CLT01_38S_class.h"
-#include "VNI8200XP_class.h"
+/* expansion board specific header files. */
+#include "x_nucleo_plc01a1_class.h"
/* Definitions ---------------------------------------------------------------*/
+
#define SPI_MOSI D11
#define SPI_MISO D12
#define SPI_SCLK D13
@@ -60,6 +59,7 @@
/* Uncomment this for OUTPUT_CYCLING ENABLE */
#define OUTPUT_CYCLING
+
/* Variables -----------------------------------------------------------------*/
/* Array for input data from Digital Input Termination Device */
@@ -118,6 +118,7 @@
spi.frequency(frequency_hz);
}
+
/* Main ----------------------------------------------------------------------*/
int main()
@@ -148,4 +149,3 @@
wait_ms(10);
}
}
-