Analog Devices / Mbed OS EVAL-AD7689

Dependencies:   sdp_k1_sdram

Revision:
2:007533849deb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/ad7689_user_config.c	Thu Jul 21 16:45:24 2022 +0530
@@ -0,0 +1,48 @@
+/***************************************************************************//**
+ * @file    ad7689_user_config.c
+ * @brief   User configurations for AD7689 No-OS driver
+********************************************************************************
+* Copyright (c) 2021-22 Analog Devices, Inc.
+* All rights reserved.
+*
+* This software is proprietary to Analog Devices, Inc. and its licensors.
+* By using this software you agree to the terms of the associated
+* Analog Devices Software License Agreement.
+*******************************************************************************/
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+
+#include "ad7689_user_config.h"
+#include "app_config.h"
+
+/******************************************************************************/
+/********************* Macros and Constants Definition ************************/
+/******************************************************************************/
+
+/******************************************************************************/
+/******************** Variables and User Defined Data Types *******************/
+/******************************************************************************/
+
+/* AD7689 No-OS driver init parameters */
+struct ad7689_init_param ad7689_init_params = {
+	.id = ACTIVE_DEVICE,
+
+	.config = {
+		.incc = ADC_INPUT_TYPE_CFG,
+		.inx = 0,
+		.bw = AD7689_BW_FULL,
+		.ref = ADC_REF_VOLTAGE_CFG,
+		.seq = AD7689_SEQ_DISABLE,
+		.rb = false
+	},
+
+	.spi_init = {
+		.max_speed_hz = 22500000,
+		.mode = NO_OS_SPI_MODE_0,
+		.chip_select = SPI_CSB,
+		.platform_ops = &spi_ops,
+		.extra = &spi_extra_init_params
+	}
+};