precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
app_config_stm32.h
Go to the documentation of this file.
1/***************************************************************************/
13#ifndef APP_CONFIG_STM32_H_
14#define APP_CONFIG_STM32_H_
15
16/******************************************************************************/
17/***************************** Include Files **********************************/
18/******************************************************************************/
19
20#include <stdint.h>
21
22#include "stm32_uart.h"
23#include "stm32_i2c.h"
24
25/******************************************************************************/
26/********************** Macros and Constants Definition ***********************/
27/******************************************************************************/
28
29/* I2C timing register value for standard mode of operation
30 * Check here for more understanding on I2C timing register
31 * configuration: https://wiki.analog.com/resources/no-os/drivers/i2c */
32#define I2C_TIMING 0x00000E14
33
34#define I2C_DEVICE_ID 1 // I2C1
35
36#if defined (TARGET_SDP_K1)
37#define APP_UART_HANDLE &huart5 // UART5
38#define HW_CARRIER_NAME SDP-K1
39#else
40#define APP_UART_HANDLE &huart3 // UART3
41#define HW_CARRIER_NAME NUCLEO-H563ZI
42#endif
43
44/******************************************************************************/
45/********************** Public/Extern Declarations ****************************/
46/******************************************************************************/
47
48extern struct stm32_i2c_init_param stm32_i2c_extra_init_params;
49extern struct stm32_uart_init_param stm32_uart_extra_init_params;
50#if defined (TARGET_SDP_K1)
51extern UART_HandleTypeDef huart5;
52#else
53extern UART_HandleTypeDef huart3;
54#endif
55
56void stm32_system_init(void);
57
58#endif /* APP_CONFIG_STM32_H_ */
UART_HandleTypeDef huart5
void stm32_system_init(void)
Initialize the STM32 system peripherals.
Definition app_config_stm32.c:174
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition app_config_stm32.c:51
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition app_config_stm32.c:99
UART_HandleTypeDef huart3