
IIO firmware for the AD4110
Dependencies: tempsensors sdp_k1_sdram
Diff: app/main.c
- Revision:
- 0:6ca37a8f8ba9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main.c Wed Jul 27 17:04:15 2022 +0530 @@ -0,0 +1,50 @@ +/***************************************************************************//** + * @file main.c + * @brief Main interface for AD4110-1 IIO firmware application +******************************************************************************** +* Copyright (c) 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 "ad4110_iio.h" +#include "no_os_error.h" + +/******************************************************************************/ +/********************* Macros and Constants Definition ************************/ +/******************************************************************************/ + +/******************************************************************************/ +/******************** Variables and User Defined Data Types *******************/ +/******************************************************************************/ + +/******************************************************************************/ +/************************** Functions Declaration *****************************/ +/******************************************************************************/ + +/******************************************************************************/ +/************************** Functions Definition ******************************/ +/******************************************************************************/ + +/* @brief Main function + * @details This is a main entry function for firmware application + */ +int main(void) +{ + /* Initialize the IIO device interface */ + if (ad4110_iio_initialize()) { + printf("IIO initialization failure!!\r\n"); + } + + while (1) { + /* Monitor the IIO client events */ + ad4110_iio_event_handler(); + } +} \ No newline at end of file