no-OS
Macros | Functions
main.c File Reference

Implementation of Main Function. More...

#include "app_config.h"
#include "parameters.h"
#include "iio_app.h"
#include "iio_adc_demo.h"
#include "iio_dac_demo.h"
#include "no_os_util.h"
#include "no_os_error.h"
Include dependency graph for main.c:

Macros

#define DEMO_CHANNELS   no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)
 
#define SAMPLES_PER_CHANNEL   0
 
#define loopback_buffs   NULL
 

Functions

int32_t platform_init ()
 Initialize the power controller and set the core and peripherals clock divider. More...
 
int main (void)
 main More...
 

Detailed Description

Implementation of Main Function.

Author
Cristian Pop (crist.nosp@m.ian..nosp@m.pop@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2020(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ DEMO_CHANNELS

#define DEMO_CHANNELS   no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)

◆ loopback_buffs

#define loopback_buffs   NULL

◆ SAMPLES_PER_CHANNEL

#define SAMPLES_PER_CHANNEL   0

Function Documentation

◆ main()

int main ( void  )

main

◆ platform_init()

int32_t platform_init ( )

Initialize the power controller and set the core and peripherals clock divider.

Returns
0 in case of success or error code otherwise.
Here is the caller graph for this function: