precision-converters-firmware
Loading...
Searching...
No Matches
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#include "common_macros.h"
21
22/******************************************************************************/
23/********************** Macros and Constants Definition ***********************/
24/******************************************************************************/
25
26/* Select the active platform */
27#define ACTIVE_PLATFORM STM32_PLATFORM
28
29#if (ACTIVE_PLATFORM == STM32_PLATFORM)
30#include "app_config_stm32.h"
31/* Redefine the init params structure mapping w.r.t. platform */
32#define spi_extra_init_params stm32_spi_extra_init_params
33#define uart_extra_init_params stm32_uart_extra_init_params
34#define spi_ops stm32_spi_ops
35#else
36#error "No/Invalid active platform selected"
37#endif
38
39/* Supported LTC268x devices (One selected at a time, default is LTC2688) */
40#define DEV_LTC2688
41
42#if defined(DEV_LTC2688)
43#define ACTIVE_DEVICE "LTC2688"
44#elif defined(DEV_LTC2686)
45#define ACTIVE_DEVICE "LTC2686"
46#else
47#define ACTIVE_DEVICE "LTC2688"
48#warning "No active device selected. LTC2688 is assumed as default"
49#endif
50
51/******************************************************************************/
52/********************** Variables and User Defined Data Types *****************/
53/******************************************************************************/
54
55/******************************************************************************/
56/************************ Public Declarations *********************************/
57/******************************************************************************/
58
59#endif //APP_CONFIG_H
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.