Example Program for EVAL-AD5592R

Dependencies:   adi_console_menu platform_drivers

Files at this revision

API Documentation at this revision

Comitter:
Kjansen
Date:
Tue Aug 03 12:18:40 2021 +0100
Parent:
3:ae77c589c81a
Commit message:
No-OS Adoption Changes:
* Updated the .lib files for adoption of no-OS repository as-is.
* Replaced platform_drivers.h with required header files.
* Updated the copyright year.

Mbed OS update changes:
1) Added the mbed_app.json file with custom parameters.
2) Updated the mbed-os version to 6.8.0

Updated the readme file.

Changed in this revision

AD5592R.lib Show diff for this revision Revisions of this file
README.txt Show annotated file Show diff for this revision Revisions of this file
adi_console_menu.lib Show diff for this revision Revisions of this file
app/.mbedignore Show annotated file Show diff for this revision Revisions of this file
app/ad5592r_console_app.c Show annotated file Show diff for this revision Revisions of this file
app/ad5592r_user_config.c Show annotated file Show diff for this revision Revisions of this file
app/adi_console_menu.lib Show annotated file Show diff for this revision Revisions of this file
app/mbed_platform_drivers.lib Show annotated file Show diff for this revision Revisions of this file
app/no-OS.lib Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
platform_drivers.lib Show diff for this revision Revisions of this file
diff -r ae77c589c81a -r 9fa40df9bf93 AD5592R.lib
--- a/AD5592R.lib	Mon Jun 22 22:27:26 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/AnalogDevices/code/AD5592R/#2ad195e1455b
diff -r ae77c589c81a -r 9fa40df9bf93 README.txt
--- a/README.txt	Mon Jun 22 22:27:26 2020 +0000
+++ b/README.txt	Tue Aug 03 12:18:40 2021 +0100
@@ -29,39 +29,18 @@
 How to Get Started
 ------------------
 Open Mbed online compiler. https://ide.mbed.com/compiler
-Import Code into compiler from here: https://os.mbed.com/teams/AnalogDevices/code/EVAL-AD5592R/
-instructions on how to import code are here: https://os.mbed.com/docs/mbed-os/v5.12/tools/importing-code.html
-Select to compile for AD5592R or AD5593R in app_config.h.
-Compile code. Drag and drop binary into SDP-K1 controller board. Find detailed instructions 
-here: https://os.mbed.com/docs/mbed-os/v5.12/tools/getting-your-program-on-your-board.html
-Open Tera Term (or alternative), select 115200 baud rate, and the applicable COM port to see the 
-list of options. If the AD5592R/93R is not provided with an external voltage reference,
-or the on-board voltage reference is not powered, enable the internal reference 
-under [s] General Settings.
+Import Code into compiler. Instructions on how to import code are here: https://os.mbed.com/docs/mbed-os/v6.8/quick-start/build-with-the-online-compiler.html
+Compile code to generate binary file and then drag and drop binary into SDP-K1 controller board. Detailed instructions are here: 
+https://os.mbed.com/docs/mbed-os/v6.8/build-tools/getting-your-program-on-your-board.html
 
-A detailed user guide on how to use SDP-K1 board on Mbed platform is available 
-here: https://wiki.analog.com/resources/tools-software/mbed
+Refer project wiki page to find detailed guide on how to use firmware:
+https://wiki.analog.com/resources/tools-software/product-support-software/ad5592r_mbed_example
+
 
 
 Notes
 -----
-If using Win 7, install serial drivers for Mbed. https://os.mbed.com/docs/mbed-os/v5.12/tutorials/windows-serial-driver.html
+Refer this page for latest documentation on Mbed-OS: https://os.mbed.com/docs/mbed-os/v6.8/introduction/index.html
 A detailed user guide on SDP-K1 controller board is available here https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/SDP-K1.html.
 
-
-License
--------
-Copyright (c) 2020 Analog Devices, Inc.  All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-  - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  
-  - Modified versions of the software must be conspicuously marked as such.
-  - This software is licensed solely and exclusively for use with processors/products manufactured by or for Analog Devices, Inc.
-  - This software may not be combined or merged with other code in any manner that would cause the software to become subject to terms and conditions which differ from those listed here.
-  - Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-  - The use of this software may or may not infringe the patent rights of one or more patent holders.  This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
-
-THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-2020-02-24-7CBSD SLA
+Copyright (c) 2020 Analog Devices, Inc.  All rights reserved.
\ No newline at end of file
diff -r ae77c589c81a -r 9fa40df9bf93 adi_console_menu.lib
--- a/adi_console_menu.lib	Mon Jun 22 22:27:26 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/AnalogDevices/code/adi_console_menu/#dcc17e5a913f
diff -r ae77c589c81a -r 9fa40df9bf93 app/.mbedignore
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/.mbedignore	Tue Aug 03 12:18:40 2021 +0100
@@ -0,0 +1,34 @@
+mbed_platform_drivers/adc_data_capture.c
+mbed_platform_drivers/uart.cpp
+no-OS/ci/
+no-OS/doc/
+no-OS/drivers/accel/
+no-OS/drivers/adc/
+no-OS/drivers/afe/
+no-OS/drivers/amplifiers/
+no-OS/drivers/axi_core/
+no-OS/drivers/cdc/
+no-OS/drivers/dac/
+no-OS/drivers/ecg/
+no-OS/drivers/frequency/
+no-OS/drivers/gpio/
+no-OS/drivers/gyro/
+no-OS/drivers/i2c/
+no-OS/drivers/impedance-analyzer/
+no-OS/drivers/io-expander/
+no-OS/drivers/instr-amplif/
+no-OS/drivers/mux/
+no-OS/drivers/photo-electronic/
+no-OS/drivers/platform/
+no-OS/drivers/potentiometer/
+no-OS/drivers/rf-transceiver/
+no-OS/drivers/sd-card/
+no-OS/drivers/spi/
+no-OS/drivers/tdm/
+no-OS/drivers/temperature/
+no-OS/iio/
+no-OS/legacy/
+no-OS/libraries/
+no-OS/network/
+no-OS/projects/
+no-OS/tools/
diff -r ae77c589c81a -r 9fa40df9bf93 app/ad5592r_console_app.c
--- a/app/ad5592r_console_app.c	Mon Jun 22 22:27:26 2020 +0000
+++ b/app/ad5592r_console_app.c	Tue Aug 03 12:18:40 2021 +0100
@@ -7,7 +7,7 @@
  *            based on user selected console menu.
  *
  -----------------------------------------------------------------------------
- Copyright (c) 2020 Analog Devices, Inc.
+ Copyright (c) 2020-2021 Analog Devices, Inc.
  All rights reserved.
 
  This software is proprietary to Analog Devices, Inc. and its licensors.
@@ -26,7 +26,10 @@
 #include "ad5592r_configs.h"
 
 #include "platform_support.h"
-#include "platform_drivers.h"
+#include "error.h"
+#include "gpio.h"
+#include "i2c.h"
+#include "spi.h"
 #include "spi_extra.h"
 #include "i2c_extra.h"
 
diff -r ae77c589c81a -r 9fa40df9bf93 app/ad5592r_user_config.c
--- a/app/ad5592r_user_config.c	Mon Jun 22 22:27:26 2020 +0000
+++ b/app/ad5592r_user_config.c	Tue Aug 03 12:18:40 2021 +0100
@@ -5,7 +5,7 @@
   @details: Settings for parameters and descriptors for interface protocols. Start up configuration
 
  -----------------------------------------------------------------------------
- Copyright (c) 2020 Analog Devices, Inc.
+ Copyright (c) 2020-2021 Analog Devices, Inc.
  All rights reserved.
 
  This software is proprietary to Analog Devices, Inc. and its licensors.
@@ -24,7 +24,8 @@
 
 #include "ad5592r-base.h"
 #include "platform_support.h"
-#include "platform_drivers.h"
+#include "i2c.h"
+#include "spi.h"
 #include "spi_extra.h"
 #include "i2c_extra.h"
 
diff -r ae77c589c81a -r 9fa40df9bf93 app/adi_console_menu.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/adi_console_menu.lib	Tue Aug 03 12:18:40 2021 +0100
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/AnalogDevices/code/adi_console_menu/#ced4fa6875ed
\ No newline at end of file
diff -r ae77c589c81a -r 9fa40df9bf93 app/mbed_platform_drivers.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/mbed_platform_drivers.lib	Tue Aug 03 12:18:40 2021 +0100
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/AnalogDevices/code/platform_drivers/#af1f2416dd26
\ No newline at end of file
diff -r ae77c589c81a -r 9fa40df9bf93 app/no-OS.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/no-OS.lib	Tue Aug 03 12:18:40 2021 +0100
@@ -0,0 +1,1 @@
+https://github.com/analogdevicesinc/no-OS/#d14f824a6bee78881a277790310b12d9a3e822bd
\ No newline at end of file
diff -r ae77c589c81a -r 9fa40df9bf93 mbed-os.lib
--- a/mbed-os.lib	Mon Jun 22 22:27:26 2020 +0000
+++ b/mbed-os.lib	Tue Aug 03 12:18:40 2021 +0100
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#3a57ec7401a77b8b98f6356a1498cb154229483f
+https://github.com/ARMmbed/mbed-os/#26606218ad9d1ee1c8781aa73774fd7ea3a7658e
\ No newline at end of file
diff -r ae77c589c81a -r 9fa40df9bf93 mbed_app.json
--- a/mbed_app.json	Mon Jun 22 22:27:26 2020 +0000
+++ b/mbed_app.json	Tue Aug 03 12:18:40 2021 +0100
@@ -1,7 +1,10 @@
 {
+    "requires": ["bare-metal"],
     "target_overrides": {
         "*": {
-            "platform.default-serial-baud-rate": 115200
+            "platform.default-serial-baud-rate": 230400,
+            "target.printf_lib": "std",
+			"target.device_has_remove": ["CAN"]
         }
     }
-}
+}
\ No newline at end of file
diff -r ae77c589c81a -r 9fa40df9bf93 platform_drivers.lib
--- a/platform_drivers.lib	Mon Jun 22 22:27:26 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/AnalogDevices/code/platform_drivers/#b5115cd6b916