AD4130 Mbed IIO Firmware

Dependencies:   tempsensors sdp_k1_sdram

Revision:
2:871d585d96ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/main.c	Fri Jul 15 17:47:44 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();
+	}
+}