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_gpio.h"
38#include "stm32_irq.h"
39#include "stm32_spi.h"
40#include "stm32_uart.h"
41#include "stm32_uart_stdio.h"
42#include "no_os_gpio.h"
43
44extern UART_HandleTypeDef huart5;
45
46#ifdef IIO_SUPPORT
47#define INTC_DEVICE_ID 0
48#define IIO_APP_HUART (&huart5)
49#endif
50#define UART_IRQ_ID UART5_IRQn
51
52#define UART_DEVICE_ID 5
53#define UART_BAUDRATE 115200
54#define UART_EXTRA &adf4377_uart_extra_ip
55#define UART_OPS &stm32_uart_ops
56
57#define SPI_DEVICE_ID 5
58#define SPI_BAUDRATE 4000000
59#define SPI_CS 9
60#define SPI_CS_PORT 1
61#define SPI_OPS &stm32_spi_ops
62#define SPI_EXTRA &adf4377_spi_extra_ip
63
64#define GPIO_OPS &stm32_gpio_ops
65#define GPIO_EXTRA &adf4377_gpio_extra_ip
66
67/*
68 * The SDP-CK1Z (STM32F469) routes the SDP connector GPIO lines to GPIOJ
69 * (port 9), but the SDP_GPIOn -> PJx mapping is NOT sequential; it must be
70 * read from the SDP-CK1Z schematic per line.
71 * The EVAL-ADF4377 assigns the control signals to the SDP GPIO lines as:
72 * LKDET = SDP_GPIO0, ENCLK1 = SDP_GPIO1, ENCLK2 = SDP_GPIO2,
73 * MUXOUT = SDP_GPIO4, CE = SDP_GPIO5.
74 * Confirmed against the schematic:
75 * SDP_GPIO0 -> PJ0, SDP_GPIO2 (ENCLK2) -> PJ3, SDP_GPIO5 (CE) -> PJ12.
76 * The PJ pins for ENCLK1/MUXOUT/LKDET below are still unverified.
77 * Port numbering follows stm32_gpio: 0=GPIOA, 1=GPIOB, ..., 9=GPIOJ.
78 */
79#define GPIO_CE 12
80#define GPIO_CE_PORT 9
81#define GPIO_ENCLK1 1
82#define GPIO_ENCLK1_PORT 9
83#define GPIO_ENCLK2 3
84#define GPIO_ENCLK2_PORT 9
85#define GPIO_MUXOUT 5
86#define GPIO_MUXOUT_PORT 9
87#define GPIO_LKDET 0
88#define GPIO_LKDET_PORT 9
89#define GPIO_SDP 0
90#define GPIO_SDP_PORT 9
91
96
97#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct stm32_spi_init_param adf4377_spi_extra_ip
Definition parameters.c:41
struct no_os_gpio_init_param adf4377_gpio_ip
Definition parameters.c:50
struct stm32_uart_init_param adf4377_uart_extra_ip
Definition parameters.c:37
struct stm32_gpio_init_param adf4377_gpio_extra_ip
Definition parameters.c:45
Header file of GPIO Interface.
Header file for stm32 gpio 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 initialization parameters for stm32 platform.
Definition stm32_gpio.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