Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.c
00001 /***************************************************************************//** 00002 * @file main.c 00003 * @brief Main interface for AD7689 IIO firmware application 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 <stdio.h> 00018 #include <stdint.h> 00019 00020 #include "ad7689_iio.h" 00021 #include "no_os_error.h" 00022 00023 /******************************************************************************/ 00024 /********************* Macros and Constants Definition ************************/ 00025 /******************************************************************************/ 00026 00027 /******************************************************************************/ 00028 /******************** Variables and User Defined Data Types *******************/ 00029 /******************************************************************************/ 00030 00031 /******************************************************************************/ 00032 /************************** Functions Declarations ****************************/ 00033 /******************************************************************************/ 00034 00035 /******************************************************************************/ 00036 /************************** Functions Definitions *****************************/ 00037 /******************************************************************************/ 00038 00039 /* @brief Main function 00040 * @details This is a main entry function for AD7689 IIO application 00041 */ 00042 int main(void) 00043 { 00044 /* Initialize the AD7689 IIO interface */ 00045 if (ad7689_iio_initialize()) { 00046 printf("IIO initialization failure!!\r\n"); 00047 } 00048 00049 while (1) { 00050 /* Monitor the IIO client events */ 00051 ad7689_iio_event_handler(); 00052 } 00053 }
Generated on Fri Jul 15 2022 12:01:57 by
1.7.2