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_irq.h"
38#include "stm32_gpio_irq.h"
39#include "stm32_spi.h"
40#include "stm32_gpio.h"
41#include "stm32_uart.h"
42#include "stm32_uart_stdio.h"
43
44extern UART_HandleTypeDef huart2;
45
46#ifdef IIO_SUPPORT
47#define UART_INSTANCE (&huart2)
48#endif
49#define UART_IRQ_ID USART2_IRQn
50#define UART_DEVICE_ID 2
51#define UART_BAUDRATE 115200
52#define UART_OPS &stm32_uart_ops
53#define UART_EXTRA &max14906_uart_extra_ip
54
55#ifdef BASIC_EXAMPLE
56extern struct stm32_gpio_irq_init_param max14906_gpio_irq_extra_ip;
57
58#define GPIO_IRQ_ID 0 /* Pin 0 */
59#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
60#define GPIO_IRQ_EXTRA &max14906_gpio_irq_extra_ip
61
62#define GPIO_OPS &stm32_gpio_ops
63#define GPIO_EXTRA NULL
64
65#define GPIO_FAULT_PORT_NUM 0
66#define GPIO_FAULT_PIN_NUM 0
67#endif
68
69#define SPI_DEVICE_ID 1
70#define SPI_CS 4
71#define SPI_CS_PORT 0
72#define SPI_OPS &stm32_spi_ops
73#define SPI_EXTRA &max14906_spi_extra_ip
74#define SPI_BAUDRATE 100000
75
78
79#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart2
struct stm32_uart_init_param max14906_uart_extra_ip
Definition parameters.c:35
struct stm32_spi_init_param max14906_spi_extra_ip
Definition parameters.c:45
Header file for stm32 gpio specifics.
Header file for stm32 gpio irq specifics.
Header file for stm32 irq specifics.
Header file for the stm32 spi driver.
Header file of UART driver for STM32.
Header file of stm32 UART driver stdout/stdin redirection.
Structure holding the initialization parameters for stm32 platform specific GPIO IRQ parameters.
Definition stm32_gpio_irq.h:44
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