IIO firmware for the AD4110

Dependencies:   tempsensors sdp_k1_sdram

Committer:
Janani Sunil
Date:
Wed Jul 27 17:04:15 2022 +0530
Revision:
0:6ca37a8f8ba9
Initial implementation for AD4110 IIO Firmware

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Janani Sunil 0:6ca37a8f8ba9 1 /***************************************************************************//**
Janani Sunil 0:6ca37a8f8ba9 2 * @file app_config_mbed.c
Janani Sunil 0:6ca37a8f8ba9 3 * @brief Application configurations module for Mbed platform
Janani Sunil 0:6ca37a8f8ba9 4 ********************************************************************************
Janani Sunil 0:6ca37a8f8ba9 5 * Copyright (c) 2022 Analog Devices, Inc.
Janani Sunil 0:6ca37a8f8ba9 6 * All rights reserved.
Janani Sunil 0:6ca37a8f8ba9 7 *
Janani Sunil 0:6ca37a8f8ba9 8 * This software is proprietary to Analog Devices, Inc. and its licensors.
Janani Sunil 0:6ca37a8f8ba9 9 * By using this software you agree to the terms of the associated
Janani Sunil 0:6ca37a8f8ba9 10 * Analog Devices Software License Agreement.
Janani Sunil 0:6ca37a8f8ba9 11 *******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 12
Janani Sunil 0:6ca37a8f8ba9 13 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 14 /***************************** Include Files **********************************/
Janani Sunil 0:6ca37a8f8ba9 15 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 16
Janani Sunil 0:6ca37a8f8ba9 17 #include "app_config_mbed.h"
Janani Sunil 0:6ca37a8f8ba9 18 #include "app_config.h"
Janani Sunil 0:6ca37a8f8ba9 19
Janani Sunil 0:6ca37a8f8ba9 20 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 21 /************************ Macros/Constants ************************************/
Janani Sunil 0:6ca37a8f8ba9 22 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 23
Janani Sunil 0:6ca37a8f8ba9 24 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 25 /******************** Variables and User Defined Data Types *******************/
Janani Sunil 0:6ca37a8f8ba9 26 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 27
Janani Sunil 0:6ca37a8f8ba9 28 /* UART Mbed platform specific init parameters */
Janani Sunil 0:6ca37a8f8ba9 29 struct mbed_uart_init_param mbed_uart_extra_init_params = {
Janani Sunil 0:6ca37a8f8ba9 30 #if defined(USE_PHY_COM_PORT)
Janani Sunil 0:6ca37a8f8ba9 31 .virtual_com_enable = false,
Janani Sunil 0:6ca37a8f8ba9 32 .uart_tx_pin = UART_TX,
Janani Sunil 0:6ca37a8f8ba9 33 .uart_rx_pin = UART_RX
Janani Sunil 0:6ca37a8f8ba9 34 #else
Janani Sunil 0:6ca37a8f8ba9 35 .virtual_com_enable = true,
Janani Sunil 0:6ca37a8f8ba9 36 .vendor_id = VIRTUAL_COM_PORT_VID,
Janani Sunil 0:6ca37a8f8ba9 37 .product_id = VIRTUAL_COM_PORT_PID,
Janani Sunil 0:6ca37a8f8ba9 38 .serial_number = VIRTUAL_COM_SERIAL_NUM
Janani Sunil 0:6ca37a8f8ba9 39 #endif
Janani Sunil 0:6ca37a8f8ba9 40 };
Janani Sunil 0:6ca37a8f8ba9 41
Janani Sunil 0:6ca37a8f8ba9 42 /* SPI Mbed platform specific parameters */
Janani Sunil 0:6ca37a8f8ba9 43 struct mbed_spi_init_param mbed_spi_extra_init_params = {
Janani Sunil 0:6ca37a8f8ba9 44 .spi_clk_pin = SPI_SCK,
Janani Sunil 0:6ca37a8f8ba9 45 .spi_miso_pin = SPI_HOST_SDI,
Janani Sunil 0:6ca37a8f8ba9 46 .spi_mosi_pin = SPI_HOST_SDO,
Janani Sunil 0:6ca37a8f8ba9 47 .use_sw_csb = false,
Janani Sunil 0:6ca37a8f8ba9 48 };
Janani Sunil 0:6ca37a8f8ba9 49
Janani Sunil 0:6ca37a8f8ba9 50 /* External interrupt Mbed platform specific parameters */
Janani Sunil 0:6ca37a8f8ba9 51 struct mbed_irq_init_param mbed_ext_int_extra_init_params = {
Janani Sunil 0:6ca37a8f8ba9 52 .int_mode = EXT_IRQ_FALL,
Janani Sunil 0:6ca37a8f8ba9 53 .ext_int_pin = RDY_PIN,
Janani Sunil 0:6ca37a8f8ba9 54 .int_obj_type = NULL
Janani Sunil 0:6ca37a8f8ba9 55 };
Janani Sunil 0:6ca37a8f8ba9 56
Janani Sunil 0:6ca37a8f8ba9 57 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 58 /************************** Functions Declarations ****************************/
Janani Sunil 0:6ca37a8f8ba9 59 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 60
Janani Sunil 0:6ca37a8f8ba9 61 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 62 /************************** Functions Definitions *****************************/
Janani Sunil 0:6ca37a8f8ba9 63 /******************************************************************************/