Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: platform_drivers
Diff: app/ad7606_user_config.c
- Revision:
- 6:75e922b3859a
- Parent:
- 1:819ac9aa5667
--- a/app/ad7606_user_config.c Mon Oct 19 07:54:56 2020 +0000
+++ b/app/ad7606_user_config.c Thu Jul 15 13:21:42 2021 +0530
@@ -2,8 +2,7 @@
* @file ad7606_user_config.c
* @brief User configuration file for AD7606 device
******************************************************************************
-* 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.
@@ -20,8 +19,6 @@
#include "app_config.h"
#include "ad7606_user_config.h"
#include "ad7606_support.h"
-#include "spi_extra.h"
-#include "gpio_extra.h"
/******************************************************************************/
/********************** Macros and Constants Definition ***********************/
@@ -73,22 +70,14 @@
.extra = NULL
};
-
-/* Define SPI extra init parameters structure */
-mbed_spi_init_param spi_init_extra_params = {
- .spi_clk_pin = SPI_SCK,
- .spi_miso_pin = SPI_MISO,
- .spi_mosi_pin = SPI_MOSI
-};
-
/* Initialize the AD7606 device structure */
struct ad7606_init_param ad7606_init_str = {
// Define SPI init parameters structure
{
.max_speed_hz = 22500000, // Max SPI Speed
- .chip_select = SPI_SS, // Chip Select
+ .chip_select = SPI_CSB, // Chip Select
.mode = SPI_MODE_2, // CPOL = 1, CPHA = 1
- .extra = &spi_init_extra_params // SPI extra configurations
+ .extra = &spi_extra_init_params // SPI extra configurations
},
.gpio_reset = &gpio_init_reset,