precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 Definitions **********************/
25/******************************************************************************/
26
27/* List of platforms supported */
28#define MBED_PLATFORM 1
29#define STM32_PLATFORM 2
30
31// **** Note for User on selection of Active Device ****//
32/* Define the device type here from the list of below device type defines
33 * (one at a time. Defining more than one device can result into compile error).
34 * e.g. #define DEV_AD7142_4= -> This will make AD7124-4 as an active device.
35 * The active device is default set to AD7124-4 if device type is not defined.
36 * */
37#define DEV_AD7124_4
38
39/* Select the active platform */
40#if !defined(ACTIVE_PLATFORM)
41#define ACTIVE_PLATFORM STM32_PLATFORM
42#endif
43
44#if (ACTIVE_PLATFORM == MBED_PLATFORM)
45#include "app_config_mbed.h"
46#define spi_init_extra_params mbed_spi_extra_init_params
47#else
48#include "app_config_stm32.h"
49#define spi_init_extra_params stm32_spi_extra_init_params
50#define uart_extra_init_params stm32_uart_extra_init_params
51#endif
52
53#endif //_APP_CONFIG_H_
Header file for Mbed platform configurations.