no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 INTC_DEVICE_ID 0
48#define IIO_APP_HUART (&huart2)
49#endif
50#define UART_IRQ_ID USART2_IRQn
51#define UART_DEVICE_ID 2
52#define UART_BAUDRATE 115200
53#define UART_OPS &stm32_uart_ops
54#define UART_EXTRA &max14906_uart_extra_ip
55
56#ifdef BASIC_EXAMPLE
57extern struct stm32_gpio_irq_init_param max14906_gpio_irq_extra_ip;
58
59#define GPIO_IRQ_ID 0 /* Pin 0 */
60#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
61#define GPIO_IRQ_EXTRA &max14906_gpio_irq_extra_ip
62
63#define GPIO_OPS &stm32_gpio_ops
64#define GPIO_EXTRA NULL
65
66#define GPIO_FAULT_PORT_NUM 0
67#define GPIO_FAULT_PIN_NUM 0
68#endif
69
70#define SPI_DEVICE_ID 1
71#define SPI_CS 4
72#define SPI_CS_PORT 0
73#define SPI_OPS &stm32_spi_ops
74#define SPI_EXTRA &max14906_spi_extra_ip
75#define SPI_BAUDRATE 100000
76
79
80#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