precision-converters-firmware
Loading...
Searching...
No Matches
app_config.h
Go to the documentation of this file.
1/*************************************************************************/
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 Definition **********************/
25/******************************************************************************/
26
27/* List of platforms supported */
28#define MBED_PLATFORM 1
29#define STM32_PLATFORM 2
30
31/* Supported AD7124 devices (One selected at a time, default is AD7124-4) */
32//#define DEV_AD7124_4
33
34#if defined(DEV_AD7124_4)
35#define ACTIVE_DEVICE "AD7124-4"
36#elif defined(DEV_AD7124_8)
37#define ACTIVE_DEVICE "AD7124-8"
38#else
39#define ACTIVE_DEVICE "AD7124-8"
40#warning "No active device selected. AD7124-8 is assumed as default"
41#endif
42/* Select the active platform */
43#if !defined(ACTIVE_PLATFORM)
44#define ACTIVE_PLATFORM STM32_PLATFORM
45#endif
46
47#if (ACTIVE_PLATFORM == MBED_PLATFORM)
48#include "app_config_mbed.h"
49#define spi_init_extra_params mbed_spi_extra_init_params
50#define spi_ops mbed_spi_ops
51#else
52#include "app_config_stm32.h"
53#define spi_init_extra_params stm32_spi_extra_init_params
54#define uart_extra_init_params stm32_uart_extra_init_params
55#define spi_ops stm32_spi_ops
56#define uart_ops stm32_uart_ops
57#endif
58
59/******************************************************************************/
60/************************ Public Declarations *********************************/
61/******************************************************************************/
62
63extern struct no_os_uart_init_param uart_init_params;
64extern struct no_os_spi_init_param spi_init_params;
65
66#endif //_APP_CONFIG_H_
struct no_os_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_uart_init_param uart_init_params
Definition app_config.c:45
Header file for Mbed platform configurations.