Example program for AD717x and AD411x family of products.
Dependencies: adi_console_menu platform_drivers
main.c
00001 /*! 00002 ***************************************************************************** 00003 @file: main.c 00004 00005 @brief: main module for AD717x/AD411x application interface 00006 00007 @details: This module initialize the device and display the console menus 00008 00009 ----------------------------------------------------------------------------- 00010 Copyright (c) 2020 Analog Devices, Inc. 00011 All rights reserved. 00012 00013 This software is proprietary to Analog Devices, Inc. and its licensors. 00014 By using this software you agree to the terms of the associated 00015 Analog Devices Software License Agreement. 00016 ******************************************************************************/ 00017 00018 /******************************************************************************/ 00019 /***************************** Include Files **********************************/ 00020 /******************************************************************************/ 00021 00022 #include <stdio.h> 00023 #include "ad717x_console_app.h" 00024 00025 /******************************************************************************/ 00026 /************************ Functions Definitions *******************************/ 00027 /******************************************************************************/ 00028 00029 /* @brief Main function 00030 * @param None 00031 * @return SUCCESS(0), FAILURE (Negative) 00032 */ 00033 int main() 00034 { 00035 int32_t setupResult; 00036 00037 /* Initialize the AD717x/AD411x application */ 00038 if ((setupResult = ad717x_app_initialize()) < 0) { 00039 printf("Error setting up AD717x (%ld)\r\n\r\n", setupResult); 00040 } 00041 00042 /* Infinite loop */ 00043 while (1) { 00044 // display the console menu for the AD717x/AD411x application 00045 adi_do_console_menu(&ad717x_main_menu); 00046 } 00047 00048 // this line should not be reached 00049 return - 1; 00050 }
Generated on Wed Jul 13 2022 14:09:09 by 1.7.2