Program files for Example program for EVAL-AD7768-1
Dependencies: platform_drivers
app_config.h
00001 /***************************************************************************//* 00002 * @file app_config.h 00003 * @brief Configuration file for AD77681 IIO firmware application 00004 * @details 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 #ifndef _APP_CONFIG_H_ 00015 #define _APP_CONFIG_H_ 00016 00017 /* List of supported platforms*/ 00018 #define MBED_PLATFORM 1 00019 00020 /* Select the active platform */ 00021 #define ACTIVE_PLATFORM MBED_PLATFORM 00022 00023 /******************************************************************************/ 00024 /***************************** Include Files **********************************/ 00025 /******************************************************************************/ 00026 00027 #include <stdint.h> 00028 00029 /******************************************************************************/ 00030 /********************** Macros and Constants Definition ***********************/ 00031 /******************************************************************************/ 00032 00033 /* Name of active device */ 00034 #define ACTIVE_DEVICE_NAME "ad7768-1" 00035 00036 #if (ACTIVE_PLATFORM == MBED_PLATFORM) 00037 #include "app_config_mbed.h" 00038 00039 /* Used to form a VCOM serial number */ 00040 #define FIRMWARE_NAME "ad77681_mbed_iio_application" 00041 00042 /* Redefine the init params structure mapping w.r.t. platform */ 00043 #define uart_init_extra_params mbed_uart_extra_init_param 00044 #define spi_init_extra_params mbed_spi_init_extra_params 00045 #else 00046 #error "No/Invalid active platform selected" 00047 #endif 00048 00049 /* ADC resolution for active device */ 00050 #define ADC_RESOLUTION 24 00051 00052 /* Baud rate for IIO application UART interface */ 00053 #define IIO_UART_BAUD_RATE (230400) 00054 00055 /****** Macros used to form a VCOM serial number ******/ 00056 #if !defined(DEVICE_NAME) 00057 #define DEVICE_NAME "DEV_AD77681" 00058 #endif 00059 00060 #if !defined(PLATFORM_NAME) 00061 #define PLATFORM_NAME "SDP_K1" 00062 #endif 00063 /******/ 00064 00065 /* Enable the VirtualCOM port connection/interface. By default serial communication 00066 * is physical UART */ 00067 //#define USE_VIRTUAL_COM_PORT 00068 00069 #if defined(USE_VIRTUAL_COM_PORT) 00070 /* Below USB configurations (VID and PID) are owned and assigned by ADI. 00071 * If intended to distribute software further, use the VID and PID owned by your 00072 * organization */ 00073 #define VIRTUAL_COM_PORT_VID 0x0456 00074 #define VIRTUAL_COM_PORT_PID 0xb66c 00075 /* Serial number string is formed as: application name + device (target) name + platform (host) name */ 00076 #define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" PLATFORM_NAME) 00077 #endif 00078 00079 /******************************************************************************/ 00080 /************************ Public Declarations *********************************/ 00081 /******************************************************************************/ 00082 00083 int32_t init_system(void); 00084 00085 extern struct uart_init_param uart_init_params; 00086 extern struct gpio_desc *led_green_gpio_desc; 00087 00088 00089 #endif /* _APP_CONFIG_H_ */
Generated on Tue Jul 12 2022 19:15:23 by 1.7.2