no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include "stm32_hal.h"
38#include "stm32_irq.h"
39#include "stm32_gpio_irq.h"
40#include "stm32_spi.h"
41#include "stm32_gpio.h"
42#include "stm32_uart.h"
43#include "stm32_uart_stdio.h"
44#include "no_os_gpio.h"
45#include "no_os_irq.h"
46
47extern UART_HandleTypeDef huart5;
48
49#define UART_IRQ_ID UART5_IRQn
50
51#define UART_DEVICE_ID 5
52#define UART_BAUDRATE 115200
53#define UART_EXTRA &ad74416h_uart_extra_ip
54#define UART_OPS &stm32_uart_ops
55
56#define SPI_DEVICE_ID 1
57#define SPI_BAUDRATE 10000000
58#define SPI_CS 15
59#define SPI_CS_PORT 0
60#define SPI_OPS &stm32_spi_ops
61#define SPI_EXTRA &ad74416h_spi_extra_ip
62
63/* ADC_RDY GPIO/IRQ mapping for the SDP-CK1Z board.
64 PA2 is routed to the ADC_RDY signal and configured as GPIO_EXTI2. */
65#define GPIO_ADC_RDY_PORT 0 /* Port A */
66#define GPIO_ADC_RDY_PIN 2 /* Pin 2 */
67#define GPIO_OPS &stm32_gpio_ops
68#define GPIO_EXTRA NULL
69
70#define GPIO_IRQ_ID1 GPIO_ADC_RDY_PIN
71#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
72#define GPIO_IRQ_ADC_EXTRA &ad74416h_gpio_irq_extra_ip
73
79
80#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct stm32_uart_init_param ad74416h_uart_extra_ip
Definition parameters.c:36
struct stm32_gpio_irq_init_param ad74416h_gpio_irq_extra_ip
Definition parameters.c:45
struct no_os_irq_init_param adc_rdy_gpio_irq_ip
Definition parameters.c:59
struct no_os_gpio_init_param adc_rdy_gpio_ip
Definition parameters.c:50
struct stm32_spi_init_param ad74416h_spi_extra_ip
Definition parameters.c:40
Header file of GPIO Interface.
Header file of IRQ interface.
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 parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the initial parameters for Interrupt Request.
Definition no_os_irq.h:101
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