Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: platform_drivers
Diff: app/main.c
- Revision:
- 1:c0429edee15b
diff -r 4f174385050d -r c0429edee15b app/main.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/main.c Fri Sep 24 18:39:34 2021 +0800
@@ -0,0 +1,54 @@
+/***************************************************************************//**
+ * @file main.c
+ * @brief Main interface for AD7768-1 IIO firmware application
+ * @details
+********************************************************************************
+* Copyright (c) 2021 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 <assert.h>
+
+#include "ad77681_iio.h"
+#include "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)
+{
+ if (ad77681_iio_initialize() == FAILURE) {
+ assert(false);
+ }
+
+ while (true) {
+ // Execute forever loop
+ ad77681_iio_event_handler();
+ }
+
+ // this line should never be reached
+ return (FAILURE);
+}