no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
33
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_i2c.h"
41#include "stm32_spi.h"
42#include "stm32_gpio.h"
43#include "stm32_uart.h"
44#include "stm32_uart_stdio.h"
45#include "no_os_gpio.h"
46#include "no_os_uart.h"
47
48extern UART_HandleTypeDef huart5;
49
50#define UART_DEVICE_ID 5
51#define UART_BAUDRATE 230400
52#define UART_EXTRA &uart_extra_ip
53#define UART_OPS &stm32_uart_ops
54#define UART_IRQ_ID UART5_IRQn
55
56/* SPI Pin mapping for Arduino interface */
57#define SPI_DEVICE_ID 1
58#define SPI_BAUDRATE 2000000
59#define SPI_OPS &stm32_spi_ops
60#define SPI_CS_PORT 0
61#define SPI_CS 15
62#define SPI_EXTRA &spi_extra_ip
63
64#define GPIO_OPS &stm32_gpio_ops
65#define GPIO_EXTRA &gpio_extra_ip
66#define GPIO_PP_EXTRA &gpio_extra_pp_ip
67#define GPIO_IN_EXTRA &gpio_in_extra_ip
68
69#define GPIO_GPIO2_PORT 6
70#define GPIO_GPIO2 7
71
72#define GPIO_BUSY_PORT 3
73#define GPIO_BUSY 12
74
75#define GPIO_FAULT_PORT 6
76#define GPIO_FAULT 11
77
78#define GPIO_BOOTLOAD_PORT 0
79#define GPIO_BOOTLOAD 2
80
81#define GPIO_CNV_PORT 0
82#define GPIO_CNV 11
83
84#define GPIO_ACALC_PORT 0
85#define GPIO_ACALC 10
86
87#define GPIO_DIAG1_PORT 1
88#define GPIO_DAIG1 15
89
90#define GPIO_SHDN_N_PORT 0
91#define GPIO_SHDN_N 4
92
93#define GPIO_RSTB_PORT 0
94#define GPIO_RSTB 6
95
96#define GPIO_COIL_RS_PORT 6
97#define GPIO_COIL_RS 9
98
99#define GPIO_V_EN_PORT 2
100#define GPIO_V_EN 1
101
102#define GPIO_IRQ_ID 10
103#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
104#define GPIO_IRQ_EXTRA &trigger_gpio_irq_ip
105#define GPIO_IRQ_INTR_PRIORITY EXTI15_10_IRQn
106
107#define ADMT4000_GPIO_CB_HANDLE NULL /* Not used in stm32 platform */
108#define ADMT4000_GPIO_TRIG_IRQ_ID 0 /* Not used in stm32 platform */
109
110#define I2C_DEVICE_ID 1
111#define I2C_TIMING 0x00000E14 /* (Unused) */
112#define I2C_OPS &stm32_i2c_ops
113#define I2C_EXTRA &i2c_extra_ip
114
115#define HW_CARRIER_NAME "SDP_K1"
116#ifndef FIRMWARE_VERSION
117#define FIRMWARE_VERSION "1.0.0"
118#endif
119
120#if (TMC)
121#define TMC_CS_PORT 6
122#define TMC_CS_PIN 10
123#define SPI_TMC_EXTRA &spi_tmc_extra_ip
124#endif
125
134
135#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct xil_uart_init_param uart_extra_ip
Definition parameters.c:37
struct xil_gpio_init_param gpio_extra_ip
Definition parameters.c:62
struct stm32_spi_init_param spi_extra_ip
Definition parameters.c:138
struct stm32_gpio_init_param gpio_in_extra_ip
Definition parameters.c:50
struct stm32_gpio_init_param gpio_extra_pp_ip
Definition parameters.c:45
struct stm32_i2c_init_param i2c_extra_ip
Definition parameters.c:65
struct stm32_gpio_irq_init_param trigger_gpio_irq_ip
Definition parameters.c:69
struct stm32_spi_init_param spi_tmc_extra_ip
Header file of GPIO Interface.
Header file of UART interface.
Header file for stm32 gpio specifics.
Header file for stm32 gpio irq specifics.
Header file for the stm32 i2c driver.
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.
Definition stm32_gpio.h:44
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 I2C parameters.
Definition stm32_i2c.h:54
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