this is testing

Committer:
pmallick
Date:
Thu Jan 14 18:54:16 2021 +0530
Revision:
0:3afcd581558d
this is testing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmallick 0:3afcd581558d 1 /***************************************************************************//**
pmallick 0:3afcd581558d 2 * @file main.c
pmallick 0:3afcd581558d 3 * @brief Main module for AD7606 IIO application
pmallick 0:3afcd581558d 4 * @details This module invokes the AD7606 IIO interfaces
pmallick 0:3afcd581558d 5 * through forever loop.
pmallick 0:3afcd581558d 6 ********************************************************************************
pmallick 0:3afcd581558d 7 * Copyright (c) 2020 Analog Devices, Inc.
pmallick 0:3afcd581558d 8 *
pmallick 0:3afcd581558d 9 * All rights reserved.
pmallick 0:3afcd581558d 10 *
pmallick 0:3afcd581558d 11 * This software is proprietary to Analog Devices, Inc. and its licensors.
pmallick 0:3afcd581558d 12 * By using this software you agree to the terms of the associated
pmallick 0:3afcd581558d 13 * Analog Devices Software License Agreement.
pmallick 0:3afcd581558d 14 *******************************************************************************/
pmallick 0:3afcd581558d 15
pmallick 0:3afcd581558d 16 /******************************************************************************/
pmallick 0:3afcd581558d 17 /***************************** Include Files **********************************/
pmallick 0:3afcd581558d 18 /******************************************************************************/
pmallick 0:3afcd581558d 19 #include <stdio.h>
pmallick 0:3afcd581558d 20 #include <stdint.h>
pmallick 0:3afcd581558d 21 #include <assert.h>
pmallick 0:3afcd581558d 22
pmallick 0:3afcd581558d 23 #include "platform_support.h"
pmallick 0:3afcd581558d 24 #include "iio_ad7606.h"
pmallick 0:3afcd581558d 25 #include "error.h"
pmallick 0:3afcd581558d 26
pmallick 0:3afcd581558d 27 /******************************************************************************/
pmallick 0:3afcd581558d 28 /********************** Macros and Constants Definitions **********************/
pmallick 0:3afcd581558d 29 /******************************************************************************/
pmallick 0:3afcd581558d 30
pmallick 0:3afcd581558d 31 /******************************************************************************/
pmallick 0:3afcd581558d 32 /************************ Functions Definitions *******************************/
pmallick 0:3afcd581558d 33 /******************************************************************************/
pmallick 0:3afcd581558d 34
pmallick 0:3afcd581558d 35 /**
pmallick 0:3afcd581558d 36 * @brief Main entry point to application
pmallick 0:3afcd581558d 37 * @return none
pmallick 0:3afcd581558d 38 */
pmallick 0:3afcd581558d 39 int main(void)
pmallick 0:3afcd581558d 40 {
pmallick 0:3afcd581558d 41 /* Initialize the AD7606 IIO interface */
pmallick 0:3afcd581558d 42 if (ad7606_iio_initialize() == FAILURE) {
pmallick 0:3afcd581558d 43 assert(false);
pmallick 0:3afcd581558d 44 }
pmallick 0:3afcd581558d 45
pmallick 0:3afcd581558d 46 while (1) {
pmallick 0:3afcd581558d 47 /* Monitor the IIO client events */
pmallick 0:3afcd581558d 48 ad7606_iio_event_handler();
pmallick 0:3afcd581558d 49 }
pmallick 0:3afcd581558d 50 }