Example program for AD717x and AD411x family of products.
Dependencies: adi_console_menu platform_drivers
Revision 8:2e0e9b520392, committed 2021-08-03
- Comitter:
- Kjansen
- Date:
- Tue Aug 03 12:23:16 2021 +0100
- Parent:
- 7:3dad15f9b069
- 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
diff -r 3dad15f9b069 -r 2e0e9b520392 AD717x-AD411x.lib --- a/AD717x-AD411x.lib Sat Sep 19 12:55:53 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://os.mbed.com/teams/AnalogDevices/code/AD717x-AD411x/#0780c234e572
diff -r 3dad15f9b069 -r 2e0e9b520392 README.txt --- a/README.txt Sat Sep 19 12:55:53 2020 +0000 +++ b/README.txt Tue Aug 03 12:23:16 2021 +0100 @@ -10,14 +10,14 @@ EVAL-AD7172-2 EVAL-AD7172-4 EVAL-AD7173-8SDZ - - + + Overview -------- These code files provide the console application and device libraries to interface with AD717x/AD411x EVAL boards. This code was developed and tested on SDP-K1 controller board: https://os.mbed.com/platforms/SDP_K1/ - + Product details: https://www.analog.com/en/products/ad4111.html https://www.analog.com/en/products/ad4112.html https://www.analog.com/en/products/ad4115.html @@ -40,32 +40,17 @@ 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-AD717x-AD411x/ -instructions on how to import code are here: https://os.mbed.com/docs/mbed-os/v5.12/tools/importing-code.html -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. +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 + +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 - - -License -------- -Copyright (c) 2019 Analog Devices, Inc. All rights reserved. +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. -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. - -2019-01-10-7CBSD SLA \ No newline at end of file +Copyright (c) 2020 Analog Devices, Inc. All rights reserved. \ No newline at end of file
diff -r 3dad15f9b069 -r 2e0e9b520392 adi_console_menu.lib --- a/adi_console_menu.lib Sat Sep 19 12:55:53 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/#6a97882f6144
diff -r 3dad15f9b069 -r 2e0e9b520392 app/.mbedignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/.mbedignore Tue Aug 03 12:23:16 2021 +0100 @@ -0,0 +1,49 @@ +mbed_platform_drivers/adc_data_capture.c +mbed_platform_drivers/uart.cpp +no-OS/ci/ +no-OS/doc/ +no-OS/legacy/ +no-OS/accel/ +no-OS/drivers/adc/adc_demo/ +no-OS/drivers/adc/ad4* +no-OS/drivers/adc/ad6* +no-OS/drivers/adc/ad70* +no-OS/drivers/adc/ad713x/ +no-OS/drivers/adc/ad7124/ +no-OS/drivers/adc/ad7193/ +no-OS/drivers/adc/ad72* +no-OS/drivers/adc/ad73* +no-OS/drivers/adc/ad76* +no-OS/drivers/adc/ad77* +no-OS/drivers/adc/ad79* +no-OS/drivers/adc/ad9* +no-OS/drivers/adc/adaq* +no-OS/drivers/adc/l* +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/ \ No newline at end of file
diff -r 3dad15f9b069 -r 2e0e9b520392 app/ad717x_console_app.c --- a/app/ad717x_console_app.c Sat Sep 19 12:55:53 2020 +0000 +++ b/app/ad717x_console_app.c Tue Aug 03 12:23:16 2021 +0100 @@ -9,7 +9,7 @@ The functions defined in this file performs the action 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. @@ -30,7 +30,7 @@ #include "ad717x.h" #include "platform_support.h" -#include "platform_drivers.h" +#include "spi.h" #include "spi_extra.h" #include "ad717x_console_app.h" @@ -145,10 +145,10 @@ ad717x_init_param ad717x_init = { // spi_init_param type { - 2500000, // Max SPI Speed - SPI_SS, // Chip Select pin - SPI_MODE_3, // CPOL = 1, CPHA =1 - &spi_init_extra_params, // SPI extra configurations + .max_speed_hz = 2500000, // Max SPI Speed + .chip_select = SPI_SS, // Chip Select pin + .mode = SPI_MODE_3, // CPOL = 1, CPHA =1 + .extra = &spi_init_extra_params // SPI extra configurations }, ad717x_device_map, // pointer to device register map ad717x_reg_count, // number of device registers
diff -r 3dad15f9b069 -r 2e0e9b520392 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:23:16 2021 +0100 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/AnalogDevices/code/adi_console_menu/#ced4fa6875ed
diff -r 3dad15f9b069 -r 2e0e9b520392 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:23:16 2021 +0100 @@ -0,0 +1,1 @@ +https://os.mbed.com/teams/AnalogDevices/code/platform_drivers/#af1f2416dd26
diff -r 3dad15f9b069 -r 2e0e9b520392 app/no-OS.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/no-OS.lib Tue Aug 03 12:23:16 2021 +0100 @@ -0,0 +1,1 @@ +https://github.com/analogdevicesinc/no-OS/#d14f824a6bee78881a277790310b12d9a3e822bd \ No newline at end of file
diff -r 3dad15f9b069 -r 2e0e9b520392 mbed-os.lib --- a/mbed-os.lib Sat Sep 19 12:55:53 2020 +0000 +++ b/mbed-os.lib Tue Aug 03 12:23:16 2021 +0100 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#5941d1718339116cd12914238ec331c84da3d08f +https://github.com/ARMmbed/mbed-os/#26606218ad9d1ee1c8781aa73774fd7ea3a7658e \ No newline at end of file
diff -r 3dad15f9b069 -r 2e0e9b520392 mbed_app.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_app.json Tue Aug 03 12:23:16 2021 +0100 @@ -0,0 +1,10 @@ +{ + "requires": ["bare-metal"], + "target_overrides": { + "*": { + "platform.default-serial-baud-rate": 230400, + "target.printf_lib": "std", + "target.device_has_remove": ["CAN"] + } + } +} \ No newline at end of file
diff -r 3dad15f9b069 -r 2e0e9b520392 platform_drivers.lib --- a/platform_drivers.lib Sat Sep 19 12:55:53 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/#70fc373a5f46