Analog Devices / Mbed OS EVAL-AD7689

Dependencies:   sdp_k1_sdram

app/main.c

Committer:
Mahesh Phalke
Date:
2022-07-21
Revision:
2:007533849deb

File content as of revision 2:007533849deb:

/***************************************************************************//**
 * @file    main.c
 * @brief   Main interface for AD7689 IIO firmware application
********************************************************************************
* Copyright (c) 2021-22 Analog Devices, Inc.
* All rights reserved.
*
* This software is proprietary to Analog Devices, Inc. and its licensors.
* By using this software you agree to the terms of the associated
* Analog Devices Software License Agreement.
*******************************************************************************/

/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/

#include <stdio.h>
#include <stdint.h>

#include "ad7689_iio.h"
#include "no_os_error.h"

/******************************************************************************/
/********************* Macros and Constants Definition ************************/
/******************************************************************************/

/******************************************************************************/
/******************** Variables and User Defined Data Types *******************/
/******************************************************************************/

/******************************************************************************/
/************************** Functions Declarations ****************************/
/******************************************************************************/

/******************************************************************************/
/************************** Functions Definitions *****************************/
/******************************************************************************/

/* @brief	Main function
 * @details	This is a main entry function for AD7689 IIO application
 */
int main(void)
{
	/* Initialize the AD7689 IIO interface */
	if (ad7689_iio_initialize()) {
		printf("IIO initialization failure!!\r\n");
	}

	while (1) {
		/* Monitor the IIO client events */
		ad7689_iio_event_handler();
	}
}