precision-converters-firmware
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 #define APP_UART_HANDLE &huart3 // UART3
37 
38 /******************************************************************************/
39 /********************** Public/Extern Declarations ****************************/
40 /******************************************************************************/
41 
42 extern struct stm32_i2c_init_param stm32_i2c_extra_init_params;
43 extern struct stm32_uart_init_param stm32_uart_extra_init_params;
44 extern UART_HandleTypeDef huart3;
45 
46 void stm32_system_init();
47 
48 #endif /* APP_CONFIG_STM32_H_ */
void stm32_system_init(void)
Initialize the STM32 system peripherals.
Definition: app_config_stm32.c:111
struct stm32_uart_init_param stm32_uart_extra_init_params
Definition: app_config_stm32.c:49
struct stm32_i2c_init_param stm32_i2c_extra_init_params
Definition: app_config_stm32.c:99
UART_HandleTypeDef huart3