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

Dependencies:   MAX5715

Revision:
1:f82c4c7fe134
Parent:
0:cb3754747a08
Child:
2:015f0dc1ff16
--- a/main.cpp	Tue Mar 26 23:57:53 2019 +0000
+++ b/main.cpp	Mon Apr 29 07:36:19 2019 +0000
@@ -36,18 +36,15 @@
 #include "MAX5715.h"
 #include "USBSerial.h"
 
-// TODO: does mbed audience require C++ wrapper around driver?
-
-// TODO: simplify 'board support package' for mbed audience
-
 //MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
 //DigitalOut rLED(LED1);
 //DigitalOut gLED(LED2);
 //DigitalOut bLED(LED3);
-//DigitalOut selectPin(P3_0); // Pin 3_0 is used to drive chip enable low
 SPI spi(SPI1_MOSI, SPI1_MISO, SPI1_SCK); // mosi, miso, sclk spi1 TARGET_MAX32635MBED: P1_1 P1_2 P1_0 Arduino 10-pin header D11 D12 D13
 DigitalOut spi_cs(SPI1_SS); // TARGET_MAX32635MBED: P1_3 Arduino 10-pin header D10
-MAX5715 g_MAX5715_device(spi, spi_cs, MAX5715::MAX5715_IC);
+DigitalOut LDACb_pin(P1_5); // TARGET_MAX32635MBED: Arduino 10-pin header D9
+DigitalOut CLRb_pin(P1_4); // TARGET_MAX32635MBED: Arduino 10-pin header D8
+MAX5715 g_MAX5715_device(spi, spi_cs, LDACb_pin, CLRb_pin, MAX5715::MAX5715_IC);
 
 int main()
 {