Utilities for configuring MAX32630FTHR

Dependencies:   MAX14690

Dependents:   blinky_max32630fthr FTHR_USB_serial

Files at this revision

API Documentation at this revision

Comitter:
switches
Date:
Fri Dec 16 00:57:36 2016 +0000
Parent:
3:09e3dbb49561
Commit message:
Updated MAX14690 library. Added constructor that automatically initializes if you specify vio.

Changed in this revision

MAX14690.lib Show annotated file Show diff for this revision Revisions of this file
max32630fthr.cpp Show annotated file Show diff for this revision Revisions of this file
max32630fthr.h Show annotated file Show diff for this revision Revisions of this file
diff -r 09e3dbb49561 -r 8e424775234a MAX14690.lib
--- a/MAX14690.lib	Tue Dec 13 21:28:57 2016 +0000
+++ b/MAX14690.lib	Fri Dec 16 00:57:36 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/switches/code/MAX14690/#1ca110017930
+https://developer.mbed.org/users/switches/code/MAX14690/#666b6c505289
diff -r 09e3dbb49561 -r 8e424775234a max32630fthr.cpp
--- a/max32630fthr.cpp	Tue Dec 13 21:28:57 2016 +0000
+++ b/max32630fthr.cpp	Fri Dec 16 00:57:36 2016 +0000
@@ -38,11 +38,17 @@
 #include "max32630fthr.h"
 
 //******************************************************************************
-MAX32630FTHR::MAX32630FTHR() : i2c(P5_7, P6_0), max14690(&i2c)
+MAX32630FTHR::MAX32630FTHR() : i2c(P5_7, P6_0), max14690(i2c)
 {
 }
 
 //******************************************************************************
+MAX32630FTHR::MAX32630FTHR(vio_t vio) : i2c(P5_7, P6_0), max14690(i2c)
+{
+    init(vio);
+}
+
+//******************************************************************************
 MAX32630FTHR::~MAX32630FTHR()
 {
 }
diff -r 09e3dbb49561 -r 8e424775234a max32630fthr.h
--- a/max32630fthr.h	Tue Dec 13 21:28:57 2016 +0000
+++ b/max32630fthr.h	Fri Dec 16 00:57:36 2016 +0000
@@ -88,6 +88,12 @@
     MAX32630FTHR();
 
     /**
+        * MAX32630FTHR constructor.
+        *
+        */
+    MAX32630FTHR(vio_t vio);
+
+    /**
         * MAX32630FTHR destructor.
         */
     ~MAX32630FTHR();