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 adi_console_menu AD568x-AD569x
Diff: app/main.c
- Revision:
- 5:78877c8a97c8
diff -r a42ed9c602b5 -r 78877c8a97c8 app/main.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/main.c Thu Mar 19 08:10:46 2020 +0000
@@ -0,0 +1,52 @@
+/*!
+ *****************************************************************************
+ @file: main.c
+
+ @brief: main module for nanodac application interface
+
+ @details: main module for nanodac application interface
+
+ -----------------------------------------------------------------------------
+ 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 "nanodac_console_app.h"
+
+/******************************************************************************/
+/************************ Functions Definitions *******************************/
+/******************************************************************************/
+
+/* @brief Main function
+ *
+ * @param None
+ *
+ * @return SUCCESS(0), FAILURE (Negative)
+ */
+int main()
+{
+ int32_t setupResult;
+
+ /* Initialize the nanodac application */
+ if ((setupResult = nanodac_app_initialize()) < 0) {
+ printf("Error setting up nanodac (%ld)\r\n\r\n", setupResult);
+ }
+
+ /* Infinite loop */
+ while (1) {
+ // display the console menu for the nanodac application
+ adi_do_console_menu(&nanodac_main_menu);
+ }
+
+ // this line should not be reached
+ return - 1;
+}