precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
app_config.h
Go to the documentation of this file.
1/*************************************************************************/
13#ifndef APP_CONFIG_H
14#define APP_CONFIG_H
15
16/******************************************************************************/
17/***************************** Include Files **********************************/
18/******************************************************************************/
19#include <stdint.h>
20
21/******************************************************************************/
22/********************** Macros and Constants Definition ***********************/
23/******************************************************************************/
24/* List of supported platforms*/
25#define MBED_PLATFORM 1
26#define STM32_PLATFORM 2
27
28/* Select the active platform */
29#define ACTIVE_PLATFORM STM32_PLATFORM
30
31#if (ACTIVE_PLATFORM == MBED_PLATFORM)
32#include "app_config_mbed.h"
33
34/* Redefine the init params structure mapping w.r.t. platform */
35#define spi_extra_init_params mbed_spi_extra_init_params
36#define spi_ops mbed_spi_ops
37#elif(ACTIVE_PLATFORM == STM32_PLATFORM)
38#include "app_config_stm32.h"
39/* Redefine the init params structure mapping w.r.t. platform */
40#define spi_extra_init_params stm32_spi_extra_init_params
41#define uart_extra_init_params stm32_uart_extra_init_params
42#define spi_ops stm32_spi_ops
43#else
44#error "No/Invalid active platform selected"
45#endif
46
47/* Supported LTC268x devices (One selected at a time, default is LTC2688) */
48#define DEV_LTC2688
49
50#if defined(DEV_LTC2688)
51#define ACTIVE_DEVICE "LTC2688"
52#elif defined(DEV_LTC2686)
53#define ACTIVE_DEVICE "LTC2686"
54#else
55#define ACTIVE_DEVICE "LTC2688"
56#warning "No active device selected. LTC2688 is assumed as default"
57#endif
58
59/******************************************************************************/
60/********************** Variables and User Defined Data Types *****************/
61/******************************************************************************/
62
63/******************************************************************************/
64/************************ Public Declarations *********************************/
65/******************************************************************************/
66
67#endif //APP_CONFIG_H
Header file for Mbed platform configurations.