Example program for AD717x and AD411x family of products.

Dependencies:   adi_console_menu platform_drivers

Revision:
8:2e0e9b520392
Parent:
4:4592cc69bfa6
--- 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