precision-converters-firmware
Loading...
Searching...
No Matches
app_config.h
Go to the documentation of this file.
1
15/******************************************************************************/
16/***************************** Include Files **********************************/
17/******************************************************************************/
18#ifndef _APP_CONFIG_H_
19#define _APP_CONFIG_H_
20
21#include <stdint.h>
22#include <common_macros.h>
23
24/******************************************************************************/
25/************************* Macros & Constant Definitions ***************************/
26/******************************************************************************/
27
28/* Select the active platform */
29#if !defined(ACTIVE_PLATFORM)
30#define ACTIVE_PLATFORM STM32_PLATFORM
31#endif
32
33// Supported Devices
34#define DEV_AD5592R 0
35#define DEV_AD5593R 1
36
37#define AD5593R_A0_STATE 0
38
39// **** Note for User: ACTIVE_DEVICE selection ****
40// Define the device type here from the list of below device type defines
41// e.g. #define ACTIVE_DEVICE ID_AD5593R -> This will set AD5593R as an ACTIVE_DEVICE.
42// The ACTIVE_DEVICE is default set to AD5592R, if device type is not defined.
43
44#if !defined(ACTIVE_DEVICE)
45#define ACTIVE_DEVICE DEV_AD5592R
46#endif
47
48#define NUM_CHANNELS 8
49
50#define AD5593R_I2C (0x10 | (AD5593R_A0_STATE & 0x01))
51
52#if (ACTIVE_PLATFORM == STM32_PLATFORM)
53#include "app_config_stm32.h"
54#define spi_init_extra_params stm32_spi_extra_init_params
55#define i2c_init_extra_params stm32_i2c_extra_init_params
56#define uart_extra_init_params stm32_uart_extra_init_params
57#endif
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.