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
app/main.c
- Committer:
- mahphalke
- Date:
- 2020-03-31
- Revision:
- 1:48914f9593f1
File content as of revision 1:48914f9593f1:
/*!
*****************************************************************************
@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;
}