Example program for EVAL-AD5770R

Dependencies:   adi_console_menu platform_drivers

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.c Source File

main.c

Go to the documentation of this file.
00001 /*!
00002  *****************************************************************************
00003  * @file: main.c
00004  * @brief:
00005  *-----------------------------------------------------------------------------
00006  *
00007 Copyright (c) 2020-2021 Analog Devices, Inc. All Rights Reserved.
00008 
00009 This software is proprietary to Analog Devices, Inc. and its licensors.
00010 By using this software you agree to the terms of the associated
00011 Analog Devices Software License Agreement.
00012  ******************************************************************************/
00013 
00014 #include <stdio.h>
00015 #include <ctype.h>
00016 
00017 #include "error.h"
00018 
00019 #include "adi_console_menu.h"
00020 #include "ad5770r_console_app.h"
00021 
00022 //Variables declaration
00023 
00024 
00025 // Function Definitions
00026 
00027 int main (void)
00028 {
00029     int32_t setupResult;
00030 
00031     /* Initialize the AD7124 application before the main loop */
00032     if ((setupResult = ad5770r_app_initialize()) < 0) {
00033         printf("Error setting up AD5770R (%d)" EOL EOL, setupResult);
00034     }
00035 
00036     while(true) {
00037         adi_do_console_menu(&ad5770r_main_menu);
00038     }
00039 
00040     // this line should never be reached
00041     return (FAILURE);
00042 }