Example program for EVAL-AD4130

Dependencies:   tempsensors sdp_k1_sdram

Committer:
Mahesh Phalke
Date:
Wed Jul 20 18:12:00 2022 +0530
Revision:
2:7b2b268ea49c
Initial firmware commit

Who changed what in which revision?

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