Example program for EVAL-AD4130
Dependencies: tempsensors sdp_k1_sdram
Diff: app/main.c
- Revision:
- 2:7b2b268ea49c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main.c Wed Jul 20 18:12:00 2022 +0530 @@ -0,0 +1,47 @@ +/***************************************************************************//** + * @file main.c + * @brief Main module for AD4130 IIO application + * @details This module invokes the AD4130 IIO interfaces + * through forever loop. +******************************************************************************** + * Copyright (c) 2020, 2022 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 "ad4130_iio.h" + +/******************************************************************************/ +/********************** Macros and Constants Definitions **********************/ +/******************************************************************************/ + +/******************************************************************************/ +/************************ Functions Definitions *******************************/ +/******************************************************************************/ + +/** + * @brief Main entry point to application + * @return none + */ +int main(void) +{ + /* Initialize the AD4130 IIO interface */ + if (ad4130_iio_initialize()) { + printf("IIO initialization failure!!\r\n"); + } + + while (1) { + /* Monitor the IIO client events */ + ad4130_iio_event_handler(); + } +}