Example host software for the Maxim Integrated MAX5715 12-bit 4-channel voltage-output DAC. Hosted on the MAX32625MBED.

Dependencies:   MAX5715

Revision:
11:2de0dbf6946a
Parent:
9:1d512984d625
Child:
12:f84771a41b3b
--- a/main.cpp	Mon Jun 10 17:24:35 2019 +0000
+++ b/main.cpp	Mon Jun 17 05:43:08 2019 +0000
@@ -36,20 +36,6 @@
 //#include "max32625.h"
 #include "MAX5715.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 +93,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");
-
-        //MAX5715 dac(spi, spi_cs, MAX5715::MAX5715_IC);
-        //dac.Init();
-
         // CODE GENERATOR: example code: member function Init
         g_MAX5715_device.Init();