no-OS
Loading...
Searching...
No Matches
parameters.h File Reference

Definitions specific to STM32 platform used by admt4000 project. More...

#include "stm32_hal.h"
#include "stm32_irq.h"
#include "stm32_gpio_irq.h"
#include "stm32_i2c.h"
#include "stm32_spi.h"
#include "stm32_gpio.h"
#include "stm32_uart.h"
#include "stm32_uart_stdio.h"
#include "no_os_gpio.h"
#include "no_os_uart.h"
Include dependency graph for parameters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UART_DEVICE_ID   5
 
#define UART_BAUDRATE   230400
 
#define UART_EXTRA   &uart_extra_ip
 
#define UART_OPS   &stm32_uart_ops
 
#define UART_IRQ_ID   UART5_IRQn
 
#define SPI_DEVICE_ID   1
 
#define SPI_BAUDRATE   2000000
 
#define SPI_OPS   &stm32_spi_ops
 
#define SPI_CS_PORT   0
 
#define SPI_CS   15
 
#define SPI_EXTRA   &spi_extra_ip
 
#define GPIO_OPS   &stm32_gpio_ops
 
#define GPIO_EXTRA   &gpio_extra_ip
 
#define GPIO_PP_EXTRA   &gpio_extra_pp_ip
 
#define GPIO_IN_EXTRA   &gpio_in_extra_ip
 
#define GPIO_GPIO2_PORT   6
 
#define GPIO_GPIO2   7
 
#define GPIO_BUSY_PORT   3
 
#define GPIO_BUSY   12
 
#define GPIO_FAULT_PORT   6
 
#define GPIO_FAULT   11
 
#define GPIO_BOOTLOAD_PORT   0
 
#define GPIO_BOOTLOAD   2
 
#define GPIO_CNV_PORT   0
 
#define GPIO_CNV   11
 
#define GPIO_ACALC_PORT   0
 
#define GPIO_ACALC   10
 
#define GPIO_DIAG1_PORT   1
 
#define GPIO_DAIG1   15
 
#define GPIO_SHDN_N_PORT   0
 
#define GPIO_SHDN_N   4
 
#define GPIO_RSTB_PORT   0
 
#define GPIO_RSTB   6
 
#define GPIO_COIL_RS_PORT   6
 
#define GPIO_COIL_RS   9
 
#define GPIO_V_EN_PORT   2
 
#define GPIO_V_EN   1
 
#define GPIO_IRQ_ID   10
 
#define GPIO_IRQ_OPS   &stm32_gpio_irq_ops
 
#define GPIO_IRQ_EXTRA   &trigger_gpio_irq_ip
 
#define GPIO_IRQ_INTR_PRIORITY   EXTI15_10_IRQn
 
#define ADMT4000_GPIO_CB_HANDLE   NULL /* Not used in stm32 platform */
 
#define ADMT4000_GPIO_TRIG_IRQ_ID   0 /* Not used in stm32 platform */
 
#define I2C_DEVICE_ID   1
 
#define I2C_TIMING   0x00000E14 /* (Unused) */
 
#define I2C_OPS   &stm32_i2c_ops
 
#define I2C_EXTRA   &i2c_extra_ip
 
#define HW_CARRIER_NAME   "SDP_K1"
 
#define FIRMWARE_VERSION   "1.0.0"
 

Variables

UART_HandleTypeDef huart5
 
struct stm32_uart_init_param uart_extra_ip
 
struct stm32_spi_init_param spi_extra_ip
 
struct stm32_spi_init_param spi_tmc_extra_ip
 
struct stm32_i2c_init_param i2c_extra_ip
 
struct stm32_gpio_init_param gpio_extra_ip
 
struct stm32_gpio_init_param gpio_extra_pp_ip
 
struct stm32_gpio_init_param gpio_in_extra_ip
 
struct stm32_gpio_irq_init_param trigger_gpio_irq_ip
 

Detailed Description

Definitions specific to STM32 platform used by admt4000 project.

Author
Kister Genesis Jimenez (kiste.nosp@m.r.ji.nosp@m.menez.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

Copyright 2026(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ ADMT4000_GPIO_CB_HANDLE

#define ADMT4000_GPIO_CB_HANDLE   NULL /* Not used in stm32 platform */

◆ ADMT4000_GPIO_TRIG_IRQ_ID

#define ADMT4000_GPIO_TRIG_IRQ_ID   0 /* Not used in stm32 platform */

◆ FIRMWARE_VERSION

#define FIRMWARE_VERSION   "1.0.0"

◆ GPIO_ACALC

#define GPIO_ACALC   10

◆ GPIO_ACALC_PORT

#define GPIO_ACALC_PORT   0

◆ GPIO_BOOTLOAD

#define GPIO_BOOTLOAD   2

◆ GPIO_BOOTLOAD_PORT

#define GPIO_BOOTLOAD_PORT   0

◆ GPIO_BUSY

#define GPIO_BUSY   12

◆ GPIO_BUSY_PORT

#define GPIO_BUSY_PORT   3

◆ GPIO_CNV

#define GPIO_CNV   11

◆ GPIO_CNV_PORT

#define GPIO_CNV_PORT   0

◆ GPIO_COIL_RS

#define GPIO_COIL_RS   9

◆ GPIO_COIL_RS_PORT

#define GPIO_COIL_RS_PORT   6

◆ GPIO_DAIG1

#define GPIO_DAIG1   15

◆ GPIO_DIAG1_PORT

#define GPIO_DIAG1_PORT   1

◆ GPIO_EXTRA

#define GPIO_EXTRA   &gpio_extra_ip

◆ GPIO_FAULT

#define GPIO_FAULT   11

◆ GPIO_FAULT_PORT

#define GPIO_FAULT_PORT   6

◆ GPIO_GPIO2

#define GPIO_GPIO2   7

◆ GPIO_GPIO2_PORT

#define GPIO_GPIO2_PORT   6

◆ GPIO_IN_EXTRA

#define GPIO_IN_EXTRA   &gpio_in_extra_ip

◆ GPIO_IRQ_EXTRA

#define GPIO_IRQ_EXTRA   &trigger_gpio_irq_ip

◆ GPIO_IRQ_ID

#define GPIO_IRQ_ID   10

◆ GPIO_IRQ_INTR_PRIORITY

#define GPIO_IRQ_INTR_PRIORITY   EXTI15_10_IRQn

◆ GPIO_IRQ_OPS

#define GPIO_IRQ_OPS   &stm32_gpio_irq_ops

◆ GPIO_OPS

#define GPIO_OPS   &stm32_gpio_ops

◆ GPIO_PP_EXTRA

#define GPIO_PP_EXTRA   &gpio_extra_pp_ip

◆ GPIO_RSTB

#define GPIO_RSTB   6

◆ GPIO_RSTB_PORT

#define GPIO_RSTB_PORT   0

◆ GPIO_SHDN_N

#define GPIO_SHDN_N   4

◆ GPIO_SHDN_N_PORT

#define GPIO_SHDN_N_PORT   0

◆ GPIO_V_EN

#define GPIO_V_EN   1

◆ GPIO_V_EN_PORT

#define GPIO_V_EN_PORT   2

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   "SDP_K1"

◆ I2C_DEVICE_ID

#define I2C_DEVICE_ID   1

◆ I2C_EXTRA

#define I2C_EXTRA   &i2c_extra_ip

◆ I2C_OPS

#define I2C_OPS   &stm32_i2c_ops

◆ I2C_TIMING

#define I2C_TIMING   0x00000E14 /* (Unused) */

◆ SPI_BAUDRATE

#define SPI_BAUDRATE   2000000

◆ SPI_CS

#define SPI_CS   15

◆ SPI_CS_PORT

#define SPI_CS_PORT   0

◆ SPI_DEVICE_ID

#define SPI_DEVICE_ID   1

◆ SPI_EXTRA

#define SPI_EXTRA   &spi_extra_ip

◆ SPI_OPS

#define SPI_OPS   &stm32_spi_ops

◆ UART_BAUDRATE

#define UART_BAUDRATE   230400

◆ UART_DEVICE_ID

#define UART_DEVICE_ID   5

◆ UART_EXTRA

#define UART_EXTRA   &uart_extra_ip

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART5_IRQn

◆ UART_OPS

#define UART_OPS   &stm32_uart_ops

Variable Documentation

◆ gpio_extra_ip

struct stm32_gpio_init_param gpio_extra_ip
extern

◆ gpio_extra_pp_ip

struct stm32_gpio_init_param gpio_extra_pp_ip
extern

◆ gpio_in_extra_ip

struct stm32_gpio_init_param gpio_in_extra_ip
extern

◆ huart5

UART_HandleTypeDef huart5
extern

◆ i2c_extra_ip

struct stm32_i2c_init_param i2c_extra_ip
extern

◆ spi_extra_ip

struct stm32_spi_init_param spi_extra_ip
extern

◆ spi_tmc_extra_ip

struct stm32_spi_init_param spi_tmc_extra_ip
extern

◆ trigger_gpio_irq_ip

struct stm32_gpio_irq_init_param trigger_gpio_irq_ip
extern

◆ uart_extra_ip

struct stm32_uart_init_param uart_extra_ip
extern