Program files for Example program for EVAL-AD7768-1

Dependencies:   platform_drivers

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 AD7768-1 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 /******************************************************************************/
00015 /***************************** Include Files **********************************/
00016 /******************************************************************************/
00017 #include <assert.h>
00018 
00019 #include "ad77681_iio.h"
00020 #include "error.h"
00021 
00022 /******************************************************************************/
00023 /********************* Macros and Constants Definition ************************/
00024 /******************************************************************************/
00025 
00026 /******************************************************************************/
00027 /******************** Variables and User Defined Data Types *******************/
00028 /******************************************************************************/
00029 
00030 /******************************************************************************/
00031 /************************** Functions Declaration *****************************/
00032 /******************************************************************************/
00033 
00034 /******************************************************************************/
00035 /************************** Functions Definition ******************************/
00036 /******************************************************************************/
00037 
00038 /* @brief   Main function
00039  * @details This is a main entry function for firmware application
00040  */
00041 int main(void)
00042 {
00043     if (ad77681_iio_initialize() == FAILURE) {
00044         assert(false);
00045     }
00046 
00047     while (true) {
00048         // Execute forever loop
00049         ad77681_iio_event_handler();
00050     }
00051 
00052     // this line should never be reached
00053     return (FAILURE);
00054 }