precision-converters-firmware
Loading...
Searching...
No Matches
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#include <common_macros.h>
23
24/******************************************************************************/
25/********************** Macros and Constants Definitions **********************/
26/******************************************************************************/
27
28// **** Note for User on selection of Active Device ****//
29/* Define the device type here from the list of below device type defines
30 * (one at a time. Defining more than one device can result into compile error).
31 * e.g. #define DEV_AD7142_4= -> This will make AD7124-4 as an active device.
32 * The active device is default set to AD7124-4 if device type is not defined.
33 * */
34#define DEV_AD7124_4
35
36/* Select the active platform */
37#if !defined(ACTIVE_PLATFORM)
38#define ACTIVE_PLATFORM STM32_PLATFORM
39#endif
40
41#if (ACTIVE_PLATFORM == STM32_PLATFORM)
42#include "app_config_stm32.h"
43#define spi_init_extra_params stm32_spi_extra_init_params
44#define uart_extra_init_params stm32_uart_extra_init_params
45#endif
46
47#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.