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#include <stdint.h>
18#include "ad5933.h"
19
20#define MBED_PLATFORM 1
21#define STM32_PLATFORM 2
22
23/* Select the Active Platform */
24#if !defined(ACTIVE_PLATFORM)
25#define ACTIVE_PLATFORM STM32_PLATFORM
26#endif
27
28#if (ACTIVE_PLATFORM == MBED_PLATFORM)
29#include "app_config_mbed.h"
30#define spi_init_extra_params mbed_spi_extra_init_params
31#define spi_ops mbed_spi_ops
32#define i2c_init_extra_params mbed_i2c_extra_init_params
33#else
34#include "app_config_stm32.h"
35#define spi_init_extra_params stm32_spi_extra_init_params
36#define spi_ops stm32_spi_ops
37#define uart_extra_init_params stm32_uart_extra_init_params
38#define i2c_init_extra_params stm32_i2c_extra_init_params
39#endif
40
41#endif //_APP_CONFIG_H_
Header file for Mbed platform configurations.