Analog Devices / Mbed OS EVAL-AD4110

Dependencies:   tempsensors sdp_k1_sdram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers app_config_mbed.c Source File

app_config_mbed.c

Go to the documentation of this file.
00001 /***************************************************************************//**
00002  *   @file    app_config_mbed.c
00003  *   @brief   Application configurations module for Mbed platform
00004 ********************************************************************************
00005  * Copyright (c) 2022 Analog Devices, Inc.
00006  * All rights reserved.
00007  *
00008  * This software is proprietary to Analog Devices, Inc. and its licensors.
00009  * By using this software you agree to the terms of the associated
00010  * Analog Devices Software License Agreement.
00011 *******************************************************************************/
00012 
00013 /******************************************************************************/
00014 /***************************** Include Files **********************************/
00015 /******************************************************************************/
00016 
00017 #include "app_config_mbed.h"
00018 #include "app_config.h"
00019 
00020 /******************************************************************************/
00021 /************************ Macros/Constants ************************************/
00022 /******************************************************************************/
00023 
00024 /******************************************************************************/
00025 /******************** Variables and User Defined Data Types *******************/
00026 /******************************************************************************/
00027 
00028 /* UART Mbed platform specific init parameters */
00029 struct mbed_uart_init_param mbed_uart_extra_init_params = {
00030 #if defined(USE_PHY_COM_PORT)
00031     .virtual_com_enable = false,
00032     .uart_tx_pin = UART_TX,
00033     .uart_rx_pin = UART_RX
00034 #else
00035     .virtual_com_enable = true,
00036     .vendor_id = VIRTUAL_COM_PORT_VID,
00037     .product_id = VIRTUAL_COM_PORT_PID,
00038     .serial_number = VIRTUAL_COM_SERIAL_NUM
00039 #endif
00040 };
00041 
00042 /* SPI Mbed platform specific parameters */
00043 struct mbed_spi_init_param mbed_spi_extra_init_params = {
00044     .spi_clk_pin = SPI_SCK,
00045     .spi_miso_pin = SPI_HOST_SDI,
00046     .spi_mosi_pin = SPI_HOST_SDO,
00047     .use_sw_csb = false,
00048 };
00049 
00050 /* External interrupt Mbed platform specific parameters */
00051 struct mbed_irq_init_param mbed_ext_int_extra_init_params = {
00052     .int_mode = EXT_IRQ_FALL,
00053     .ext_int_pin = RDY_PIN,
00054     .int_obj_type = NULL
00055 };
00056 
00057 /******************************************************************************/
00058 /************************** Functions Declarations ****************************/
00059 /******************************************************************************/
00060 
00061 /******************************************************************************/
00062 /************************** Functions Definitions *****************************/
00063 /******************************************************************************/