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: MAX5171
Diff: main.cpp
- Revision:
- 1:8f712114baf7
- Parent:
- 0:5da566e61083
- Child:
- 3:80bae2311ddb
--- a/main.cpp Wed Jun 12 19:26:27 2019 +0000
+++ b/main.cpp Mon Jun 17 05:52:31 2019 +0000
@@ -30,27 +30,12 @@
// * ownership rights.
// *******************************************************************************
// */
-//---------- CODE GENERATOR: testMainCppCodeList
// CODE GENERATOR: example code includes
// example code includes
#include "mbed.h"
//#include "max32625.h"
#include "MAX5171.h"
-// optional: serial port
-// note: some platforms such as Nucleo-F446RE do not support the USBSerial library.
-// In those cases, remove the USBDevice lib from the project and rebuild.
-#if defined(TARGET_MAX32625MBED)
-#include "USBSerial.h"
-USBSerial serial; // virtual serial port over USB (DEV connector)
-#elif defined(TARGET_MAX32630MBED)
-#include "USBSerial.h"
-USBSerial serial; // virtual serial port over USB (DEV connector)
-#else
-//#include "USBSerial.h"
-Serial serial(USBTX, USBRX); // tx, rx
-#endif
-
// example code board support
//MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
//DigitalOut rLED(LED1);
@@ -107,19 +92,6 @@
{
while (1)
{
- // example code: serial port banner message
- #if defined(TARGET_MAX32625MBED)
- serial.printf("MAX32625MBED ");
- #elif defined(TARGET_MAX32600MBED)
- serial.printf("MAX32600MBED ");
- #elif defined(TARGET_NUCLEO_F446RE)
- serial.printf("NUCLEO_F446RE ");
- #endif
- serial.printf("MAX5715BOB\r\n");
-
- //MAX5171 dac(spi, spi_cs, MAX5171::MAX5171_IC);
- //dac.Init();
-
// CODE GENERATOR: example code: member function Init
g_MAX5171_device.Init();
@@ -145,4 +117,3 @@
wait(3.0);
}
}
-//---------- CODE GENERATOR: end testMainCppCodeList
MAX5171BOB