Mahesh Phalke / Mbed OS EVAL-AD7689

Dependencies:   sdp_k1_sdram

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.c Source File

main.c

Go to the documentation of this file.
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 }