Example program for EVAL-AD5770R
Dependencies: adi_console_menu platform_drivers
Diff: app/main.c
- Revision:
- 1:63c505e13da4
- Child:
- 5:f3d7cf95cd8f
diff -r 0f4881f73ef9 -r 63c505e13da4 app/main.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main.c Mon Mar 30 16:52:24 2020 +0000 @@ -0,0 +1,42 @@ +/*! + ***************************************************************************** + * @file: main.c + * @brief: + *----------------------------------------------------------------------------- + * +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 <stdio.h> +#include <ctype.h> + +#include "platform_drivers.h" + +#include "adi_console_menu.h" +#include "ad5770r_console_app.h" + +//Variables declaration + + +// Function Definitions + +int main (void) +{ + int32_t setupResult; + + /* Initialize the AD7124 application before the main loop */ + if ((setupResult = ad5770r_app_initialize()) < 0) { + printf("Error setting up AD5770R (%d)" EOL EOL, setupResult); + } + + while(true) { + adi_do_console_menu(&ad5770r_main_menu); + } + + // this line should never be reached + return (FAILURE); +}