Example program for EVAL-AD5770R

Dependencies:   adi_console_menu platform_drivers

app/main.c

Committer:
Kjansen
Date:
2021-08-03
Revision:
5:f3d7cf95cd8f
Parent:
1:63c505e13da4

File content as of revision 5:f3d7cf95cd8f:

/*!
 *****************************************************************************
 * @file: main.c
 * @brief:
 *-----------------------------------------------------------------------------
 *
Copyright (c) 2020-2021 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 "error.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);
}