Initial Commit
Dependencies: platform_drivers AD5592R adi_console_menu
Diff: app/main.c
- Revision:
- 1:e84d8d51cd51
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main.c Mon Jun 15 14:34:32 2020 +0000 @@ -0,0 +1,49 @@ +/*! + ***************************************************************************** + @file: main.c + @brief: main module for AD5592R application interface + @details: main module for AD5592R 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 "ad5592r_console_app.h" + +/******************************************************************************/ +/***************************** Function Definitions **********************************/ +/******************************************************************************/ + +/* @brief Main function + * + * @param None + * + * @return SUCCESS(0), FAILURE (Negative) + */ +int main() +{ + int32_t status; + + if((status = ad5592r_app_initalization()) < 0) { + printf(EOL "Error setting up device (%d)" EOL, status); + adi_press_any_key_to_continue(); + } + + /* Infinite loop */ + while (1) { + // display the console menu for the AD7124 application + adi_do_console_menu(&ad5592r_main_menu); + } + + // this line should not be reached + return - 1; +}