precision-converters-firmware
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 
27 /* Select the active platform */
28 #define ACTIVE_PLATFORM MBED_PLATFORM
29 
30 #if (ACTIVE_PLATFORM == MBED_PLATFORM)
31 #include "app_config_mbed.h"
32 
33 /* Redefine the init params structure mapping w.r.t. platform */
34 #define spi_extra_init_params mbed_spi_extra_init_params
35 #define spi_ops mbed_spi_ops
36 #else
37 #error "No/Invalid active platform selected"
38 #endif
39 
40 /* Supported LTC268x devices (One selected at a time, default is LTC2688) */
41 #define DEV_LTC2688
42 
43 #if defined(DEV_LTC2688)
44 #define ACTIVE_DEVICE "LTC2688"
45 #elif defined(DEV_LTC2686)
46 #define ACTIVE_DEVICE "LTC2686"
47 #else
48 #define ACTIVE_DEVICE "LTC2688"
49 #warning "No active device selected. LTC2688 is assumed as default"
50 #endif
51 
52 /******************************************************************************/
53 /********************** Variables and User Defined Data Types *****************/
54 /******************************************************************************/
55 
56 /******************************************************************************/
57 /************************ Public Declarations *********************************/
58 /******************************************************************************/
59 
60 #endif //APP_CONFIG_H
Header file for Mbed platform configurations.