Forked repository for pushing changes to EVAL-AD4696

Dependencies:   platform_drivers

Committer:
pmallick
Date:
Thu Sep 30 11:01:05 2021 +0530
Revision:
1:8792acb5a039
AD4696 IIO Application- Initial Revision

Who changed what in which revision?

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