Mahesh Phalke / Mbed OS EVAL-AD7689

Dependencies:   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) 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 <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 struct mbed_uart_init_param mbed_uart_extra_init_params = {
00031 #if defined(USE_PHY_COM_PORT)
00032     .virtual_com_enable = false,
00033     .uart_tx_pin = UART_TX,
00034     .uart_rx_pin = UART_RX
00035 #else
00036     .virtual_com_enable = true,
00037     .vendor_id = VIRTUAL_COM_PORT_VID,
00038     .product_id = VIRTUAL_COM_PORT_PID,
00039     .serial_number = VIRTUAL_COM_SERIAL_NUM
00040 #endif
00041 };
00042 
00043 /* External interrupt Mbed platform specific parameters */
00044 struct 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 struct mbed_pwm_init_param mbed_pwm_extra_init_params = {
00051     .pwm_pin = PWM_TRIGGER
00052 };
00053 
00054 /* SPI Mbed platform specific parameters */
00055 struct mbed_spi_init_param mbed_spi_extra_init_params = {
00056     .spi_clk_pin = SPI_SCK,
00057     .spi_miso_pin = SPI_HOST_SDI,
00058     .spi_mosi_pin = SPI_HOST_SDO
00059 };
00060 
00061 /******************************************************************************/
00062 /************************** Functions Declarations ****************************/
00063 /******************************************************************************/
00064 
00065 /******************************************************************************/
00066 /************************** Functions Definitions *****************************/
00067 /******************************************************************************/