Program files for Example program for EVAL-AD7768-1

Dependencies:   platform_drivers

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  *   @details This module contains the configurations needed for IIO application
00005 ********************************************************************************
00006  * Copyright (c) 2021 Analog Devices, Inc.
00007  * All rights reserved.
00008  *
00009  * This software is proprietary to Analog Devices, Inc. and its licensors.
00010  * By using this software you agree to the terms of the associated
00011  * Analog Devices Software License Agreement.
00012 *******************************************************************************/
00013 
00014 /******************************************************************************/
00015 /***************************** Include Files **********************************/
00016 /******************************************************************************/
00017 
00018 #include <stdbool.h>
00019 #include "app_config.h"
00020 #include "app_config_mbed.h"
00021 
00022 /******************************************************************************/
00023 /************************ Macros/Constants ************************************/
00024 /******************************************************************************/
00025 
00026 /******************************************************************************/
00027 /*************************** Types Declarations *******************************/
00028 /******************************************************************************/
00029 
00030 /* UART Mbed platform parameters structure */
00031 mbed_uart_init_param mbed_uart_extra_init_param = {
00032 #if defined(USE_VIRTUAL_COM_PORT)
00033     .virtual_com_enable = true,
00034     .vendor_id = VIRTUAL_COM_PORT_VID,
00035     .product_id = VIRTUAL_COM_PORT_PID,
00036     .serial_number = VIRTUAL_COM_SERIAL_NUM
00037 #else
00038     .uart_tx_pin = UART_TX,
00039     .uart_rx_pin = UART_RX,
00040     .virtual_com_enable = false
00041 #endif
00042 };
00043 
00044 /* Define external interrupt platform specific parameters structure */
00045 mbed_irq_init_param mbed_ext_int_init_param = {
00046     .int_mode = EXT_IRQ_FALL,
00047     .ext_int_pin = DRDY,
00048 };
00049 
00050 /* SPI Mbed platform parameters structure */
00051 mbed_spi_init_param mbed_spi_init_extra_params = {
00052     .spi_clk_pin = SPI_SCK,
00053     .spi_miso_pin = SPI_MISO,
00054     .spi_mosi_pin = SPI_MOSI
00055 };
00056 
00057 
00058 /******************************************************************************/
00059 /************************ Functions Prototypes ********************************/
00060 /******************************************************************************/
00061 
00062 /******************************************************************************/
00063 /************************ Functions Definitions *******************************/
00064 /******************************************************************************/