IIO firmware for the AD4110

Dependencies:   tempsensors sdp_k1_sdram

Committer:
Janani Sunil
Date:
Mon Aug 01 11:09:48 2022 +0530
Revision:
1:a78dbaa4b05d
Parent:
0:6ca37a8f8ba9
Initial implementation of AD4110 IIO Firmware

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Janani Sunil 0:6ca37a8f8ba9 1 /***************************************************************************//**
Janani Sunil 0:6ca37a8f8ba9 2 * @file main.c
Janani Sunil 0:6ca37a8f8ba9 3 * @brief Main interface for AD4110-1 IIO firmware application
Janani Sunil 0:6ca37a8f8ba9 4 ********************************************************************************
Janani Sunil 0:6ca37a8f8ba9 5 * Copyright (c) 2022 Analog Devices, Inc.
Janani Sunil 0:6ca37a8f8ba9 6 * All rights reserved.
Janani Sunil 0:6ca37a8f8ba9 7 *
Janani Sunil 0:6ca37a8f8ba9 8 * This software is proprietary to Analog Devices, Inc. and its licensors.
Janani Sunil 0:6ca37a8f8ba9 9 * By using this software you agree to the terms of the associated
Janani Sunil 0:6ca37a8f8ba9 10 * Analog Devices Software License Agreement.
Janani Sunil 0:6ca37a8f8ba9 11 *******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 12
Janani Sunil 0:6ca37a8f8ba9 13 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 14 /***************************** Include Files **********************************/
Janani Sunil 0:6ca37a8f8ba9 15 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 16
Janani Sunil 0:6ca37a8f8ba9 17 #include "ad4110_iio.h"
Janani Sunil 0:6ca37a8f8ba9 18 #include "no_os_error.h"
Janani Sunil 0:6ca37a8f8ba9 19
Janani Sunil 0:6ca37a8f8ba9 20 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 21 /********************* Macros and Constants Definition ************************/
Janani Sunil 0:6ca37a8f8ba9 22 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 23
Janani Sunil 0:6ca37a8f8ba9 24 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 25 /******************** Variables and User Defined Data Types *******************/
Janani Sunil 0:6ca37a8f8ba9 26 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 27
Janani Sunil 0:6ca37a8f8ba9 28 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 29 /************************** Functions Declaration *****************************/
Janani Sunil 0:6ca37a8f8ba9 30 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 31
Janani Sunil 0:6ca37a8f8ba9 32 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 33 /************************** Functions Definition ******************************/
Janani Sunil 0:6ca37a8f8ba9 34 /******************************************************************************/
Janani Sunil 0:6ca37a8f8ba9 35
Janani Sunil 0:6ca37a8f8ba9 36 /* @brief Main function
Janani Sunil 0:6ca37a8f8ba9 37 * @details This is a main entry function for firmware application
Janani Sunil 0:6ca37a8f8ba9 38 */
Janani Sunil 0:6ca37a8f8ba9 39 int main(void)
Janani Sunil 0:6ca37a8f8ba9 40 {
Janani Sunil 0:6ca37a8f8ba9 41 /* Initialize the IIO device interface */
Janani Sunil 0:6ca37a8f8ba9 42 if (ad4110_iio_initialize()) {
Janani Sunil 0:6ca37a8f8ba9 43 printf("IIO initialization failure!!\r\n");
Janani Sunil 0:6ca37a8f8ba9 44 }
Janani Sunil 0:6ca37a8f8ba9 45
Janani Sunil 0:6ca37a8f8ba9 46 while (1) {
Janani Sunil 0:6ca37a8f8ba9 47 /* Monitor the IIO client events */
Janani Sunil 0:6ca37a8f8ba9 48 ad4110_iio_event_handler();
Janani Sunil 0:6ca37a8f8ba9 49 }
Janani Sunil 0:6ca37a8f8ba9 50 }