Example Program for EVAL-AD7606
Dependencies: platform_drivers
app_config_mbed.c
00001 /***************************************************************************//** 00002 * @file app_config_mbed.c 00003 * @brief Application configurations module for Mbed platform 00004 ******************************************************************************** 00005 * Copyright (c) 2021 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 <stdbool.h> 00018 #include "app_config.h" 00019 #include "app_config_mbed.h" 00020 00021 /******************************************************************************/ 00022 /************************ Macros/Constants ************************************/ 00023 /******************************************************************************/ 00024 00025 /******************************************************************************/ 00026 /******************** Variables and User Defined Data Types *******************/ 00027 /******************************************************************************/ 00028 00029 /* UART Mbed platform specific init parameters */ 00030 mbed_uart_init_param mbed_uart_extra_init_params = { 00031 #if defined(USE_VIRTUAL_COM_PORT) 00032 .virtual_com_enable = true, 00033 .vendor_id = VIRTUAL_COM_PORT_VID, 00034 .product_id = VIRTUAL_COM_PORT_PID, 00035 .serial_number = VIRTUAL_COM_SERIAL_NUM 00036 #else 00037 .uart_tx_pin = UART_TX, 00038 .uart_rx_pin = UART_RX, 00039 .virtual_com_enable = false 00040 #endif 00041 }; 00042 00043 /* External interrupt Mbed platform specific parameters */ 00044 mbed_irq_init_param mbed_ext_int_extra_init_params = { 00045 .int_mode = EXT_IRQ_FALL, 00046 .ext_int_pin = INT_EVENT, 00047 .int_obj_type = NULL 00048 }; 00049 00050 /* SPI Mbed platform specific parameters */ 00051 mbed_spi_init_param mbed_spi_extra_init_params = { 00052 .spi_clk_pin = SPI_SCK, 00053 .spi_miso_pin = SPI_HOST_SDI, 00054 .spi_mosi_pin = SPI_HOST_SDO 00055 }; 00056 00057 /******************************************************************************/ 00058 /************************** Functions Declarations ****************************/ 00059 /******************************************************************************/ 00060 00061 /******************************************************************************/ 00062 /************************** Functions Definitions *****************************/ 00063 /******************************************************************************/
Generated on Wed Jul 13 2022 11:55:04 by 1.7.2