no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef __PARAMETERS_H__
34#define __PARAMETERS_H__
35
36#include "stm32_hal.h"
37#include "stm32_spi.h"
38#include "stm32_uart.h"
39
40#define INTC_DEVICE_ID 0
41
42/* UART device parameters */
43#define UART_INSTANCE &huart5
44#define UART_DEVICE_ID 5U // UART5
45#define UART_IRQ_ID UART5_IRQn
46#define UART_BAUDRATE 230400
47#define uart_platform_ops stm32_uart_ops
48#define UART_EXTRA &max22915_uart_extra_ip
49
50/* SPI device parameters */
51#define SPI_DEVICE_ID 1 // SPI1
52#define GPIO_CS_PIN 15 // PA15
53#define GPIO_CS_PORT 0 // GPIOA
54#define SPI_MAX_SPEED_HZ 50000
55#define spi_platform_ops stm32_spi_ops
56#define SPI_EXTRA &max22915_spi_extra_ip
57
58extern UART_HandleTypeDef huart5;
61
62#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct stm32_uart_init_param max22915_uart_extra_ip
Definition parameters.c:36
struct stm32_spi_init_param max22915_spi_extra_ip
Definition parameters.c:40
Header file for the stm32 spi driver.
Header file of UART driver for STM32.
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition stm32_spi.h:51
Specific initialization parameters for stm32 UART.
Definition stm32_uart.h:46