STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
main.h File Reference

: Header for main.c file. More...

#include "stm32h7xx_hal.h"
Include dependency graph for main.h:

Go to the source code of this file.

Macros

#define NAND_SPI4_CLK_Pin   GPIO_PIN_2
#define NAND_SPI4_CLK_GPIO_Port   GPIOE
#define PYRO_1_CTRL_Pin   GPIO_PIN_3
#define PYRO_1_CTRL_GPIO_Port   GPIOE
#define NAND_CS_Pin   GPIO_PIN_4
#define NAND_CS_GPIO_Port   GPIOE
#define NAND_SPI4_MISO_Pin   GPIO_PIN_5
#define NAND_SPI4_MISO_GPIO_Port   GPIOE
#define NAND_SPI4_MOSI_Pin   GPIO_PIN_6
#define NAND_SPI4_MOSI_GPIO_Port   GPIOE
#define PYRO_2_EN_Pin   GPIO_PIN_13
#define PYRO_2_EN_GPIO_Port   GPIOC
#define PYRO_1_EN_Pin   GPIO_PIN_14
#define PYRO_1_EN_GPIO_Port   GPIOC
#define PYRO_1_PG_Pin   GPIO_PIN_15
#define PYRO_1_PG_GPIO_Port   GPIOC
#define ALT_CURR_SENSE_ADC_Pin   GPIO_PIN_0
#define ALT_CURR_SENSE_ADC_GPIO_Port   GPIOC
#define CURR_SENSE_ADC_Pin   GPIO_PIN_1
#define CURR_SENSE_ADC_GPIO_Port   GPIOC
#define ETH_SPI2_MISO_Pin   GPIO_PIN_2
#define ETH_SPI2_MISO_GPIO_Port   GPIOC
#define ETH_SPI2_MOSI_Pin   GPIO_PIN_3
#define ETH_SPI2_MOSI_GPIO_Port   GPIOC
#define VBAT_ADC_Pin   GPIO_PIN_0
#define VBAT_ADC_GPIO_Port   GPIOA
#define EXT_SENSE_ADC_Pin   GPIO_PIN_1
#define EXT_SENSE_ADC_GPIO_Port   GPIOA
#define PYRO_1_CONT_ADC_Pin   GPIO_PIN_2
#define PYRO_1_CONT_ADC_GPIO_Port   GPIOA
#define PYRO_2_CONT_ADC_Pin   GPIO_PIN_3
#define PYRO_2_CONT_ADC_GPIO_Port   GPIOA
#define EXT_SENSE_ADC_2_Pin   GPIO_PIN_4
#define EXT_SENSE_ADC_2_GPIO_Port   GPIOA
#define RADIO_CLK_Pin   GPIO_PIN_5
#define RADIO_CLK_GPIO_Port   GPIOA
#define RADIO_MISO_Pin   GPIO_PIN_6
#define RADIO_MISO_GPIO_Port   GPIOA
#define RADIO_MOSI_Pin   GPIO_PIN_7
#define RADIO_MOSI_GPIO_Port   GPIOA
#define RADIO_CS_Pin   GPIO_PIN_4
#define RADIO_CS_GPIO_Port   GPIOC
#define RADIO_BUSY_Pin   GPIO_PIN_5
#define RADIO_BUSY_GPIO_Port   GPIOC
#define RADIO_NRST_Pin   GPIO_PIN_0
#define RADIO_NRST_GPIO_Port   GPIOB
#define RADIO_RF_SW_Pin   GPIO_PIN_1
#define RADIO_RF_SW_GPIO_Port   GPIOB
#define RADIO_DIO1_Pin   GPIO_PIN_2
#define RADIO_DIO1_GPIO_Port   GPIOB
#define RADIO_DIO1_EXTI_IRQn   EXTI2_IRQn
#define SW_ST_Pin   GPIO_PIN_10
#define SW_ST_GPIO_Port   GPIOE
#define REG_3V6_EN_Pin   GPIO_PIN_11
#define REG_3V6_EN_GPIO_Port   GPIOE
#define ETH_RST_Pin   GPIO_PIN_13
#define ETH_RST_GPIO_Port   GPIOE
#define ETH_CS_Pin   GPIO_PIN_14
#define ETH_CS_GPIO_Port   GPIOE
#define ETH_INT_Pin   GPIO_PIN_15
#define ETH_INT_GPIO_Port   GPIOE
#define ETH_INT_EXTI_IRQn   EXTI15_10_IRQn
#define ETH_CLK_Pin   GPIO_PIN_10
#define ETH_CLK_GPIO_Port   GPIOB
#define TIMEPULSE_Pin   GPIO_PIN_11
#define TIMEPULSE_GPIO_Port   GPIOB
#define GPS_ANT_STATUS_Pin   GPIO_PIN_10
#define GPS_ANT_STATUS_GPIO_Port   GPIOD
#define GPS_RST_Pin   GPIO_PIN_11
#define GPS_RST_GPIO_Port   GPIOD
#define SPARE_I2C_SCL_Pin   GPIO_PIN_12
#define SPARE_I2C_SCL_GPIO_Port   GPIOD
#define SPARE_I2C_SDA_Pin   GPIO_PIN_13
#define SPARE_I2C_SDA_GPIO_Port   GPIOD
#define PWM1_Pin   GPIO_PIN_6
#define PWM1_GPIO_Port   GPIOC
#define PWM2_Pin   GPIO_PIN_7
#define PWM2_GPIO_Port   GPIOC
#define EMMC_D0_Pin   GPIO_PIN_8
#define EMMC_D0_GPIO_Port   GPIOC
#define EMMC_D1_Pin   GPIO_PIN_9
#define EMMC_D1_GPIO_Port   GPIOC
#define EMMC_RST_Pin   GPIO_PIN_8
#define EMMC_RST_GPIO_Port   GPIOA
#define USB_D_N_Pin   GPIO_PIN_11
#define USB_D_N_GPIO_Port   GPIOA
#define USB_D_P_Pin   GPIO_PIN_12
#define USB_D_P_GPIO_Port   GPIOA
#define SWDIO_DEBUG_Pin   GPIO_PIN_13
#define SWDIO_DEBUG_GPIO_Port   GPIOA
#define SWCLK_DEBUG_Pin   GPIO_PIN_14
#define SWCLK_DEBUG_GPIO_Port   GPIOA
#define JTDI_DEBUG_Pin   GPIO_PIN_15
#define JTDI_DEBUG_GPIO_Port   GPIOA
#define EMMC_D2_Pin   GPIO_PIN_10
#define EMMC_D2_GPIO_Port   GPIOC
#define EMMC_D3_Pin   GPIO_PIN_11
#define EMMC_D3_GPIO_Port   GPIOC
#define EMMC_CLK_Pin   GPIO_PIN_12
#define EMMC_CLK_GPIO_Port   GPIOC
#define IMU_INT1_Pin   GPIO_PIN_0
#define IMU_INT1_GPIO_Port   GPIOD
#define IMU_INT1_EXTI_IRQn   EXTI0_IRQn
#define IMU_INT2_Pin   GPIO_PIN_1
#define IMU_INT2_GPIO_Port   GPIOD
#define EMMC_CMD_Pin   GPIO_PIN_2
#define EMMC_CMD_GPIO_Port   GPIOD
#define ACCEL_INT_1_Pin   GPIO_PIN_3
#define ACCEL_INT_1_GPIO_Port   GPIOD
#define ACCEL_INT_1_EXTI_IRQn   EXTI3_IRQn
#define ACCEL_INT_2_Pin   GPIO_PIN_4
#define ACCEL_INT_2_GPIO_Port   GPIOD
#define BARO_CS_Pin   GPIO_PIN_5
#define BARO_CS_GPIO_Port   GPIOD
#define ACCEL_CS_Pin   GPIO_PIN_6
#define ACCEL_CS_GPIO_Port   GPIOD
#define IMU_CS_Pin   GPIO_PIN_7
#define IMU_CS_GPIO_Port   GPIOD
#define SENSOR_CLK_Pin   GPIO_PIN_3
#define SENSOR_CLK_GPIO_Port   GPIOB
#define SENSOR_MISO_Pin   GPIO_PIN_4
#define SENSOR_MISO_GPIO_Port   GPIOB
#define SENSOR_MOSI_Pin   GPIO_PIN_5
#define SENSOR_MOSI_GPIO_Port   GPIOB
#define ALT_ARM_SET_Pin   GPIO_PIN_6
#define ALT_ARM_SET_GPIO_Port   GPIOB
#define ALT_ARM_RESET_Pin   GPIO_PIN_7
#define ALT_ARM_RESET_GPIO_Port   GPIOB
#define PYRO_2_PG_Pin   GPIO_PIN_8
#define PYRO_2_PG_GPIO_Port   GPIOB
#define LED1_Pin   GPIO_PIN_9
#define LED1_GPIO_Port   GPIOB
#define LED2_Pin   GPIO_PIN_0
#define LED2_GPIO_Port   GPIOE
#define PYRO_2_CTRL_Pin   GPIO_PIN_1
#define PYRO_2_CTRL_GPIO_Port   GPIOE

Functions

void HAL_TIM_MspPostInit (TIM_HandleTypeDef *htim)
void Error_Handler (void)
 This function is executed in case of error occurrence.
void MX_SDMMC1_MMC_Init (void)
 SDMMC1 Initialization Function.

Detailed Description

: Header for main.c file.

This file contains the common defines of the application.

Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file main.h.

Macro Definition Documentation

◆ ACCEL_CS_GPIO_Port

#define ACCEL_CS_GPIO_Port   GPIOD

Definition at line 178 of file main.h.

◆ ACCEL_CS_Pin

#define ACCEL_CS_Pin   GPIO_PIN_6

Definition at line 177 of file main.h.

Referenced by MX_GPIO_Init().

◆ ACCEL_INT_1_EXTI_IRQn

#define ACCEL_INT_1_EXTI_IRQn   EXTI3_IRQn

Definition at line 172 of file main.h.

Referenced by MX_GPIO_Init().

◆ ACCEL_INT_1_GPIO_Port

#define ACCEL_INT_1_GPIO_Port   GPIOD

Definition at line 171 of file main.h.

◆ ACCEL_INT_1_Pin

#define ACCEL_INT_1_Pin   GPIO_PIN_3

Definition at line 170 of file main.h.

Referenced by EXTI3_IRQHandler(), MX_GPIO_Init(), and sensors_task().

◆ ACCEL_INT_2_GPIO_Port

#define ACCEL_INT_2_GPIO_Port   GPIOD

Definition at line 174 of file main.h.

◆ ACCEL_INT_2_Pin

#define ACCEL_INT_2_Pin   GPIO_PIN_4

Definition at line 173 of file main.h.

Referenced by MX_GPIO_Init().

◆ ALT_ARM_RESET_GPIO_Port

#define ALT_ARM_RESET_GPIO_Port   GPIOB

Definition at line 190 of file main.h.

◆ ALT_ARM_RESET_Pin

#define ALT_ARM_RESET_Pin   GPIO_PIN_7

Definition at line 189 of file main.h.

Referenced by MX_GPIO_Init().

◆ ALT_ARM_SET_GPIO_Port

#define ALT_ARM_SET_GPIO_Port   GPIOB

Definition at line 188 of file main.h.

◆ ALT_ARM_SET_Pin

#define ALT_ARM_SET_Pin   GPIO_PIN_6

Definition at line 187 of file main.h.

Referenced by MX_GPIO_Init().

◆ ALT_CURR_SENSE_ADC_GPIO_Port

#define ALT_CURR_SENSE_ADC_GPIO_Port   GPIOC

Definition at line 80 of file main.h.

◆ ALT_CURR_SENSE_ADC_Pin

#define ALT_CURR_SENSE_ADC_Pin   GPIO_PIN_0

Definition at line 79 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

◆ BARO_CS_GPIO_Port

#define BARO_CS_GPIO_Port   GPIOD

Definition at line 176 of file main.h.

◆ BARO_CS_Pin

#define BARO_CS_Pin   GPIO_PIN_5

Definition at line 175 of file main.h.

Referenced by MX_GPIO_Init().

◆ CURR_SENSE_ADC_GPIO_Port

#define CURR_SENSE_ADC_GPIO_Port   GPIOC

Definition at line 82 of file main.h.

◆ CURR_SENSE_ADC_Pin

#define CURR_SENSE_ADC_Pin   GPIO_PIN_1

Definition at line 81 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

◆ EMMC_CLK_GPIO_Port

#define EMMC_CLK_GPIO_Port   GPIOC

Definition at line 162 of file main.h.

◆ EMMC_CLK_Pin

#define EMMC_CLK_Pin   GPIO_PIN_12

Definition at line 161 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_CMD_GPIO_Port

#define EMMC_CMD_GPIO_Port   GPIOD

Definition at line 169 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_CMD_Pin

#define EMMC_CMD_Pin   GPIO_PIN_2

Definition at line 168 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_D0_GPIO_Port

#define EMMC_D0_GPIO_Port   GPIOC

Definition at line 142 of file main.h.

◆ EMMC_D0_Pin

#define EMMC_D0_Pin   GPIO_PIN_8

Definition at line 141 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_D1_GPIO_Port

#define EMMC_D1_GPIO_Port   GPIOC

Definition at line 144 of file main.h.

◆ EMMC_D1_Pin

#define EMMC_D1_Pin   GPIO_PIN_9

Definition at line 143 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_D2_GPIO_Port

#define EMMC_D2_GPIO_Port   GPIOC

Definition at line 158 of file main.h.

◆ EMMC_D2_Pin

#define EMMC_D2_Pin   GPIO_PIN_10

Definition at line 157 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_D3_GPIO_Port

#define EMMC_D3_GPIO_Port   GPIOC

Definition at line 160 of file main.h.

◆ EMMC_D3_Pin

#define EMMC_D3_Pin   GPIO_PIN_11

Definition at line 159 of file main.h.

Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().

◆ EMMC_RST_GPIO_Port

#define EMMC_RST_GPIO_Port   GPIOA

Definition at line 146 of file main.h.

Referenced by board_bringup_power_up(), MX_GPIO_Init(), and port_start().

◆ EMMC_RST_Pin

#define EMMC_RST_Pin   GPIO_PIN_8

Definition at line 145 of file main.h.

Referenced by board_bringup_power_up(), MX_GPIO_Init(), and port_start().

◆ ETH_CLK_GPIO_Port

#define ETH_CLK_GPIO_Port   GPIOB

Definition at line 126 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ ETH_CLK_Pin

#define ETH_CLK_Pin   GPIO_PIN_10

Definition at line 125 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ ETH_CS_GPIO_Port

#define ETH_CS_GPIO_Port   GPIOE

Definition at line 121 of file main.h.

◆ ETH_CS_Pin

#define ETH_CS_Pin   GPIO_PIN_14

Definition at line 120 of file main.h.

Referenced by MX_GPIO_Init().

◆ ETH_INT_EXTI_IRQn

#define ETH_INT_EXTI_IRQn   EXTI15_10_IRQn

Definition at line 124 of file main.h.

Referenced by MX_GPIO_Init().

◆ ETH_INT_GPIO_Port

#define ETH_INT_GPIO_Port   GPIOE

Definition at line 123 of file main.h.

Referenced by MX_GPIO_Init().

◆ ETH_INT_Pin

#define ETH_INT_Pin   GPIO_PIN_15

Definition at line 122 of file main.h.

Referenced by EXTI15_10_IRQHandler(), and MX_GPIO_Init().

◆ ETH_RST_GPIO_Port

#define ETH_RST_GPIO_Port   GPIOE

Definition at line 119 of file main.h.

Referenced by app_set_state(), and board_bringup_power_up().

◆ ETH_RST_Pin

#define ETH_RST_Pin   GPIO_PIN_13

Definition at line 118 of file main.h.

Referenced by app_set_state(), board_bringup_power_up(), and MX_GPIO_Init().

◆ ETH_SPI2_MISO_GPIO_Port

#define ETH_SPI2_MISO_GPIO_Port   GPIOC

Definition at line 84 of file main.h.

◆ ETH_SPI2_MISO_Pin

#define ETH_SPI2_MISO_Pin   GPIO_PIN_2

Definition at line 83 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ ETH_SPI2_MOSI_GPIO_Port

#define ETH_SPI2_MOSI_GPIO_Port   GPIOC

Definition at line 86 of file main.h.

◆ ETH_SPI2_MOSI_Pin

#define ETH_SPI2_MOSI_Pin   GPIO_PIN_3

Definition at line 85 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ EXT_SENSE_ADC_2_GPIO_Port

#define EXT_SENSE_ADC_2_GPIO_Port   GPIOA

Definition at line 96 of file main.h.

◆ EXT_SENSE_ADC_2_Pin

#define EXT_SENSE_ADC_2_Pin   GPIO_PIN_4

Definition at line 95 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

◆ EXT_SENSE_ADC_GPIO_Port

#define EXT_SENSE_ADC_GPIO_Port   GPIOA

Definition at line 90 of file main.h.

◆ EXT_SENSE_ADC_Pin

#define EXT_SENSE_ADC_Pin   GPIO_PIN_1

Definition at line 89 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

◆ GPS_ANT_STATUS_GPIO_Port

#define GPS_ANT_STATUS_GPIO_Port   GPIOD

Definition at line 130 of file main.h.

Referenced by gnss_probe(), and MX_GPIO_Init().

◆ GPS_ANT_STATUS_Pin

#define GPS_ANT_STATUS_Pin   GPIO_PIN_10

Definition at line 129 of file main.h.

Referenced by gnss_probe(), and MX_GPIO_Init().

◆ GPS_RST_GPIO_Port

#define GPS_RST_GPIO_Port   GPIOD

Definition at line 132 of file main.h.

Referenced by MX_GPIO_Init().

◆ GPS_RST_Pin

#define GPS_RST_Pin   GPIO_PIN_11

Definition at line 131 of file main.h.

Referenced by MX_GPIO_Init().

◆ IMU_CS_GPIO_Port

#define IMU_CS_GPIO_Port   GPIOD

Definition at line 180 of file main.h.

◆ IMU_CS_Pin

#define IMU_CS_Pin   GPIO_PIN_7

Definition at line 179 of file main.h.

Referenced by MX_GPIO_Init().

◆ IMU_INT1_EXTI_IRQn

#define IMU_INT1_EXTI_IRQn   EXTI0_IRQn

Definition at line 165 of file main.h.

Referenced by MX_GPIO_Init().

◆ IMU_INT1_GPIO_Port

#define IMU_INT1_GPIO_Port   GPIOD

Definition at line 164 of file main.h.

◆ IMU_INT1_Pin

#define IMU_INT1_Pin   GPIO_PIN_0

Definition at line 163 of file main.h.

Referenced by EXTI0_IRQHandler(), MX_GPIO_Init(), and sensors_task().

◆ IMU_INT2_GPIO_Port

#define IMU_INT2_GPIO_Port   GPIOD

Definition at line 167 of file main.h.

◆ IMU_INT2_Pin

#define IMU_INT2_Pin   GPIO_PIN_1

Definition at line 166 of file main.h.

Referenced by MX_GPIO_Init().

◆ JTDI_DEBUG_GPIO_Port

#define JTDI_DEBUG_GPIO_Port   GPIOA

Definition at line 156 of file main.h.

◆ JTDI_DEBUG_Pin

#define JTDI_DEBUG_Pin   GPIO_PIN_15

Definition at line 155 of file main.h.

◆ LED1_GPIO_Port

#define LED1_GPIO_Port   GPIOB

Definition at line 194 of file main.h.

Referenced by bringup_task(), led1(), and MX_GPIO_Init().

◆ LED1_Pin

#define LED1_Pin   GPIO_PIN_9

Definition at line 193 of file main.h.

Referenced by bringup_task(), led1(), and MX_GPIO_Init().

◆ LED2_GPIO_Port

#define LED2_GPIO_Port   GPIOE

Definition at line 196 of file main.h.

Referenced by bringup_task(), Error_Handler(), and MX_GPIO_Init().

◆ LED2_Pin

#define LED2_Pin   GPIO_PIN_0

Definition at line 195 of file main.h.

Referenced by bringup_task(), Error_Handler(), and MX_GPIO_Init().

◆ NAND_CS_GPIO_Port

#define NAND_CS_GPIO_Port   GPIOE

Definition at line 68 of file main.h.

◆ NAND_CS_Pin

#define NAND_CS_Pin   GPIO_PIN_4

Definition at line 67 of file main.h.

Referenced by MX_GPIO_Init().

◆ NAND_SPI4_CLK_GPIO_Port

#define NAND_SPI4_CLK_GPIO_Port   GPIOE

Definition at line 64 of file main.h.

◆ NAND_SPI4_CLK_Pin

#define NAND_SPI4_CLK_Pin   GPIO_PIN_2

Definition at line 63 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ NAND_SPI4_MISO_GPIO_Port

#define NAND_SPI4_MISO_GPIO_Port   GPIOE

Definition at line 70 of file main.h.

Referenced by HAL_SPI_MspInit().

◆ NAND_SPI4_MISO_Pin

#define NAND_SPI4_MISO_Pin   GPIO_PIN_5

Definition at line 69 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ NAND_SPI4_MOSI_GPIO_Port

#define NAND_SPI4_MOSI_GPIO_Port   GPIOE

Definition at line 72 of file main.h.

◆ NAND_SPI4_MOSI_Pin

#define NAND_SPI4_MOSI_Pin   GPIO_PIN_6

Definition at line 71 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ PWM1_GPIO_Port

#define PWM1_GPIO_Port   GPIOC

Definition at line 138 of file main.h.

◆ PWM1_Pin

#define PWM1_Pin   GPIO_PIN_6

Definition at line 137 of file main.h.

Referenced by HAL_TIM_MspPostInit().

◆ PWM2_GPIO_Port

#define PWM2_GPIO_Port   GPIOC

Definition at line 140 of file main.h.

◆ PWM2_Pin

#define PWM2_Pin   GPIO_PIN_7

Definition at line 139 of file main.h.

Referenced by HAL_TIM_MspPostInit().

◆ PYRO_1_CONT_ADC_GPIO_Port

#define PYRO_1_CONT_ADC_GPIO_Port   GPIOA

Definition at line 92 of file main.h.

◆ PYRO_1_CONT_ADC_Pin

#define PYRO_1_CONT_ADC_Pin   GPIO_PIN_2

Definition at line 91 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

◆ PYRO_1_CTRL_GPIO_Port

#define PYRO_1_CTRL_GPIO_Port   GPIOE

Definition at line 66 of file main.h.

◆ PYRO_1_CTRL_Pin

#define PYRO_1_CTRL_Pin   GPIO_PIN_3

Definition at line 65 of file main.h.

Referenced by MX_GPIO_Init().

◆ PYRO_1_EN_GPIO_Port

#define PYRO_1_EN_GPIO_Port   GPIOC

Definition at line 76 of file main.h.

◆ PYRO_1_EN_Pin

#define PYRO_1_EN_Pin   GPIO_PIN_14

Definition at line 75 of file main.h.

Referenced by MX_GPIO_Init().

◆ PYRO_1_PG_GPIO_Port

#define PYRO_1_PG_GPIO_Port   GPIOC

Definition at line 78 of file main.h.

◆ PYRO_1_PG_Pin

#define PYRO_1_PG_Pin   GPIO_PIN_15

Definition at line 77 of file main.h.

Referenced by MX_GPIO_Init().

◆ PYRO_2_CONT_ADC_GPIO_Port

#define PYRO_2_CONT_ADC_GPIO_Port   GPIOA

Definition at line 94 of file main.h.

◆ PYRO_2_CONT_ADC_Pin

#define PYRO_2_CONT_ADC_Pin   GPIO_PIN_3

Definition at line 93 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

◆ PYRO_2_CTRL_GPIO_Port

#define PYRO_2_CTRL_GPIO_Port   GPIOE

Definition at line 198 of file main.h.

◆ PYRO_2_CTRL_Pin

#define PYRO_2_CTRL_Pin   GPIO_PIN_1

Definition at line 197 of file main.h.

Referenced by MX_GPIO_Init().

◆ PYRO_2_EN_GPIO_Port

#define PYRO_2_EN_GPIO_Port   GPIOC

Definition at line 74 of file main.h.

◆ PYRO_2_EN_Pin

#define PYRO_2_EN_Pin   GPIO_PIN_13

Definition at line 73 of file main.h.

Referenced by MX_GPIO_Init().

◆ PYRO_2_PG_GPIO_Port

#define PYRO_2_PG_GPIO_Port   GPIOB

Definition at line 192 of file main.h.

Referenced by MX_GPIO_Init().

◆ PYRO_2_PG_Pin

#define PYRO_2_PG_Pin   GPIO_PIN_8

Definition at line 191 of file main.h.

Referenced by MX_GPIO_Init().

◆ RADIO_BUSY_GPIO_Port

#define RADIO_BUSY_GPIO_Port   GPIOC

◆ RADIO_BUSY_Pin

#define RADIO_BUSY_Pin   GPIO_PIN_5

◆ RADIO_CLK_GPIO_Port

#define RADIO_CLK_GPIO_Port   GPIOA

Definition at line 98 of file main.h.

◆ RADIO_CLK_Pin

#define RADIO_CLK_Pin   GPIO_PIN_5

Definition at line 97 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ RADIO_CS_GPIO_Port

#define RADIO_CS_GPIO_Port   GPIOC

Definition at line 104 of file main.h.

Referenced by MX_GPIO_Init().

◆ RADIO_CS_Pin

#define RADIO_CS_Pin   GPIO_PIN_4

Definition at line 103 of file main.h.

Referenced by MX_GPIO_Init().

◆ RADIO_DIO1_EXTI_IRQn

#define RADIO_DIO1_EXTI_IRQn   EXTI2_IRQn

Definition at line 113 of file main.h.

Referenced by MX_GPIO_Init().

◆ RADIO_DIO1_GPIO_Port

#define RADIO_DIO1_GPIO_Port   GPIOB

Definition at line 112 of file main.h.

Referenced by MX_GPIO_Init().

◆ RADIO_DIO1_Pin

#define RADIO_DIO1_Pin   GPIO_PIN_2

◆ RADIO_MISO_GPIO_Port

#define RADIO_MISO_GPIO_Port   GPIOA

Definition at line 100 of file main.h.

◆ RADIO_MISO_Pin

#define RADIO_MISO_Pin   GPIO_PIN_6

Definition at line 99 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ RADIO_MOSI_GPIO_Port

#define RADIO_MOSI_GPIO_Port   GPIOA

Definition at line 102 of file main.h.

◆ RADIO_MOSI_Pin

#define RADIO_MOSI_Pin   GPIO_PIN_7

Definition at line 101 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ RADIO_NRST_GPIO_Port

#define RADIO_NRST_GPIO_Port   GPIOB

Definition at line 108 of file main.h.

Referenced by board_bringup_power_up().

◆ RADIO_NRST_Pin

#define RADIO_NRST_Pin   GPIO_PIN_0

Definition at line 107 of file main.h.

Referenced by board_bringup_power_up(), and MX_GPIO_Init().

◆ RADIO_RF_SW_GPIO_Port

#define RADIO_RF_SW_GPIO_Port   GPIOB

◆ RADIO_RF_SW_Pin

#define RADIO_RF_SW_Pin   GPIO_PIN_1

◆ REG_3V6_EN_GPIO_Port

#define REG_3V6_EN_GPIO_Port   GPIOE

Definition at line 117 of file main.h.

Referenced by board_bringup_power_up(), and gps_power().

◆ REG_3V6_EN_Pin

#define REG_3V6_EN_Pin   GPIO_PIN_11

Definition at line 116 of file main.h.

Referenced by board_bringup_power_up(), gps_power(), and MX_GPIO_Init().

◆ SENSOR_CLK_GPIO_Port

#define SENSOR_CLK_GPIO_Port   GPIOB

Definition at line 182 of file main.h.

◆ SENSOR_CLK_Pin

#define SENSOR_CLK_Pin   GPIO_PIN_3

Definition at line 181 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ SENSOR_MISO_GPIO_Port

#define SENSOR_MISO_GPIO_Port   GPIOB

Definition at line 184 of file main.h.

◆ SENSOR_MISO_Pin

#define SENSOR_MISO_Pin   GPIO_PIN_4

Definition at line 183 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ SENSOR_MOSI_GPIO_Port

#define SENSOR_MOSI_GPIO_Port   GPIOB

Definition at line 186 of file main.h.

Referenced by HAL_SPI_MspInit().

◆ SENSOR_MOSI_Pin

#define SENSOR_MOSI_Pin   GPIO_PIN_5

Definition at line 185 of file main.h.

Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().

◆ SPARE_I2C_SCL_GPIO_Port

#define SPARE_I2C_SCL_GPIO_Port   GPIOD

Definition at line 134 of file main.h.

Referenced by HAL_I2C_MspDeInit().

◆ SPARE_I2C_SCL_Pin

#define SPARE_I2C_SCL_Pin   GPIO_PIN_12

Definition at line 133 of file main.h.

Referenced by HAL_I2C_MspDeInit(), and HAL_I2C_MspInit().

◆ SPARE_I2C_SDA_GPIO_Port

#define SPARE_I2C_SDA_GPIO_Port   GPIOD

Definition at line 136 of file main.h.

Referenced by HAL_I2C_MspDeInit().

◆ SPARE_I2C_SDA_Pin

#define SPARE_I2C_SDA_Pin   GPIO_PIN_13

Definition at line 135 of file main.h.

Referenced by HAL_I2C_MspDeInit(), and HAL_I2C_MspInit().

◆ SW_ST_GPIO_Port

#define SW_ST_GPIO_Port   GPIOE

Definition at line 115 of file main.h.

Referenced by board_bringup_on_usb(), and MX_GPIO_Init().

◆ SW_ST_Pin

#define SW_ST_Pin   GPIO_PIN_10

Definition at line 114 of file main.h.

Referenced by board_bringup_on_usb(), and MX_GPIO_Init().

◆ SWCLK_DEBUG_GPIO_Port

#define SWCLK_DEBUG_GPIO_Port   GPIOA

Definition at line 154 of file main.h.

◆ SWCLK_DEBUG_Pin

#define SWCLK_DEBUG_Pin   GPIO_PIN_14

Definition at line 153 of file main.h.

◆ SWDIO_DEBUG_GPIO_Port

#define SWDIO_DEBUG_GPIO_Port   GPIOA

Definition at line 152 of file main.h.

◆ SWDIO_DEBUG_Pin

#define SWDIO_DEBUG_Pin   GPIO_PIN_13

Definition at line 151 of file main.h.

◆ TIMEPULSE_GPIO_Port

#define TIMEPULSE_GPIO_Port   GPIOB

Definition at line 128 of file main.h.

Referenced by HAL_TIM_Base_MspDeInit(), and HAL_TIM_Base_MspInit().

◆ TIMEPULSE_Pin

#define TIMEPULSE_Pin   GPIO_PIN_11

Definition at line 127 of file main.h.

Referenced by HAL_TIM_Base_MspDeInit(), and HAL_TIM_Base_MspInit().

◆ USB_D_N_GPIO_Port

#define USB_D_N_GPIO_Port   GPIOA

Definition at line 148 of file main.h.

◆ USB_D_N_Pin

#define USB_D_N_Pin   GPIO_PIN_11

Definition at line 147 of file main.h.

◆ USB_D_P_GPIO_Port

#define USB_D_P_GPIO_Port   GPIOA

Definition at line 150 of file main.h.

◆ USB_D_P_Pin

#define USB_D_P_Pin   GPIO_PIN_12

Definition at line 149 of file main.h.

◆ VBAT_ADC_GPIO_Port

#define VBAT_ADC_GPIO_Port   GPIOA

Definition at line 88 of file main.h.

◆ VBAT_ADC_Pin

#define VBAT_ADC_Pin   GPIO_PIN_0

Definition at line 87 of file main.h.

Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().

Function Documentation

◆ Error_Handler()

void Error_Handler ( void )

This function is executed in case of error occurrence.

Return values
None

Definition at line 1145 of file main.c.

References __disable_irq, board_error_is_soft(), GPIO_PIN_RESET, HAL_GPIO_WritePin(), LED2_GPIO_Port, and LED2_Pin.

Referenced by HAL_ADC_MspInit(), HAL_I2C_MspInit(), HAL_MMC_MspInit(), HAL_RTC_MspInit(), HAL_SPI_MspInit(), HAL_UART_MspInit(), and MX_USB_DEVICE_Init().

◆ HAL_TIM_MspPostInit()

◆ MX_SDMMC1_MMC_Init()

void MX_SDMMC1_MMC_Init ( void )

SDMMC1 Initialization Function.

Parameters
None
Return values
None

Definition at line 456 of file main.c.

References Error_Handler(), HAL_OK, hmmc1, and SDMMC1.

Referenced by emmc_identify().