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 "stm32_spi.h"
21#include "stm32_uart.h"
22#include "stm32_irq.h"
23#include "stm32_uart_stdio.h"
24#include "main.h"
25#include "stm32_gpio.h"
26
27/******************************************************************************/
28/********************** Macros and Constants Definition ***********************/
29/******************************************************************************/
30
31/* Note: The SDP-K1 board with the STM32F469NI MCU has been used
32* for developing the firmware. The below parameters will change depending
33* on the controller used. */
34
35/* STM32 SPI Specific parameters */
36#define SPI_DEVICE_ID 1 // SPI1
37#define SPI_CS_PORT 0 // GPIO Port A
38#define SPI_CSB 15 // PA_15
39
40/* STM32 UART specific parameters */
41#define APP_UART_HANDLE &huart5
42#define UART_IRQ_ID UART5_IRQn
43
44/* platform ops */
45#define uart_ops stm32_uart_ops
46
47/******************************************************************************/
48/********************** Variables and User Defined Data Types *****************/
49/******************************************************************************/
50
51extern struct no_os_uart_desc *uart_desc;
52extern UART_HandleTypeDef huart5;
53
54extern struct stm32_uart_init_param stm32_uart_extra_init_params;
55extern struct stm32_spi_init_param stm32_spi_extra_init_params;
56
57extern void stm32_system_init(void);
58
59#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_spi_init_param stm32_spi_extra_init_params
Definition app_config_stm32.c:61
struct no_os_uart_desc * uart_desc
Definition app_config.c:97