Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: sdp_k1_sdram
app_config_mbed.c
00001 /***************************************************************************//** 00002 * @file app_config_mbed.c 00003 * @brief Source file for the mbed configuration for AD717x IIO Application 00004 ******************************************************************************** 00005 * Copyright (c) 2021-22 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.h" 00018 #include "app_config_mbed.h" 00019 00020 /******************************************************************************/ 00021 /********************* Macros and Constants Definition ************************/ 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 Init 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 }; 00048 00049 /* External interrupt Mbed platform specific parameters */ 00050 struct mbed_gpio_irq_init_param mbed_ext_int_extra_init_params = { 00051 .gpio_irq_pin = RDY_PIN, 00052 }; 00053 00054 /******************************************************************************/ 00055 /************************** Functions Declaration *****************************/ 00056 /******************************************************************************/ 00057 00058 /******************************************************************************/ 00059 /************************** Functions Definition ******************************/ 00060 /******************************************************************************/
Generated on Tue Nov 15 2022 11:39:51 by
