precision-converters-firmware
Loading...
Searching...
No Matches
app_config.h
Go to the documentation of this file.
1/*****************************************************************************
2 * @file app_config.h
3 *
4 * @brief Configuration file of AD5770R firmware example program
5******************************************************************************
6 *
7Copyright (c) 2020-2022,2025 Analog Devices, Inc. All Rights Reserved.
8
9This software is proprietary to Analog Devices, Inc. and its licensors.
10By using this software you agree to the terms of the associated
11Analog Devices Software License Agreement.
12 ******************************************************************************/
13
14#ifndef APP_CONFIG_H_
15#define APP_CONFIG_H_
16
17/******************************************************************************/
18/***************************** Include Files **********************************/
19/******************************************************************************/
20
21#include <stdint.h>
22
23/******************************************************************************/
24/********************** Macros and Constants Definitions **********************/
25/******************************************************************************/
26
27/* List of active platforms supported */
28#define MBED_PLATFORM 1
29#define STM32_PLATFORM 2
30
31/* Select the Active Platform */
32#if !defined(ACTIVE_PLATFORM)
33#define ACTIVE_PLATFORM STM32_PLATFORM
34#endif
35
36#if (ACTIVE_PLATFORM == MBED_PLATFORM)
37#include "app_config_mbed.h"
38#define spi_init_extra_params mbed_spi_extra_init_params
39#define hw_ldacb_extra_init_params mbed_gpio_ldac_init_params
40#else
41#include "app_config_stm32.h"
42#define spi_init_extra_params stm32_spi_extra_init_params
43#define uart_extra_init_params stm32_uart_extra_init_params
44#define hw_ldacb_extra_init_params stm32_gpio_ldac_init_params
45#endif
46
47#endif /* APP_CONFIG_H_ */
Header file for Mbed platform configurations.