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#include <stdint.h>
18#include "ad5933.h"
19#include <common_macros.h>
20
21/* Select the Active Platform */
22#if !defined(ACTIVE_PLATFORM)
23#define ACTIVE_PLATFORM STM32_PLATFORM
24#endif
25
26#if (ACTIVE_PLATFORM == STM32_PLATFORM)
27#include "app_config_stm32.h"
28#define spi_init_extra_params stm32_spi_extra_init_params
29#define spi_ops stm32_spi_ops
30#define uart_extra_init_params stm32_uart_extra_init_params
31#define i2c_init_extra_params stm32_i2c_extra_init_params
32#else
33#error "No/Invalid active platform selected"
34#endif
35
36#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.