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: adi_console_menu platform_drivers
Diff: app/main.c
- Revision:
- 1:48914f9593f1
diff -r 3ef280629802 -r 48914f9593f1 app/main.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/main.c Tue Mar 31 03:25:23 2020 +0000
@@ -0,0 +1,50 @@
+/*!
+ *****************************************************************************
+ @file: main.c
+
+ @brief: main module for AD717x/AD411x application interface
+
+ @details: This module initialize the device and display the console menus
+
+ -----------------------------------------------------------------------------
+ Copyright (c) 2020 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 "ad717x_console_app.h"
+
+/******************************************************************************/
+/************************ Functions Definitions *******************************/
+/******************************************************************************/
+
+/* @brief Main function
+ * @param None
+ * @return SUCCESS(0), FAILURE (Negative)
+ */
+int main()
+{
+ int32_t setupResult;
+
+ /* Initialize the AD717x/AD411x application */
+ if ((setupResult = ad717x_app_initialize()) < 0) {
+ printf("Error setting up AD717x (%ld)\r\n\r\n", setupResult);
+ }
+
+ /* Infinite loop */
+ while (1) {
+ // display the console menu for the AD717x/AD411x application
+ adi_do_console_menu(&ad717x_main_menu);
+ }
+
+ // this line should not be reached
+ return - 1;
+}