|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
: Header for main.c file. More...
#include "stm32h7xx_hal.h"Go to the source code of this file.
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. | |
: Header for main.c file.
This file contains the common defines of the application.
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.
| #define ACCEL_CS_Pin GPIO_PIN_6 |
Definition at line 177 of file main.h.
Referenced by MX_GPIO_Init().
| #define ACCEL_INT_1_EXTI_IRQn EXTI3_IRQn |
Definition at line 172 of file main.h.
Referenced by MX_GPIO_Init().
| #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().
| #define ACCEL_INT_2_Pin GPIO_PIN_4 |
Definition at line 173 of file main.h.
Referenced by MX_GPIO_Init().
| #define ALT_ARM_RESET_Pin GPIO_PIN_7 |
Definition at line 189 of file main.h.
Referenced by MX_GPIO_Init().
| #define ALT_ARM_SET_Pin GPIO_PIN_6 |
Definition at line 187 of file main.h.
Referenced by MX_GPIO_Init().
| #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().
| #define BARO_CS_Pin GPIO_PIN_5 |
Definition at line 175 of file main.h.
Referenced by MX_GPIO_Init().
| #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().
| #define EMMC_CLK_Pin GPIO_PIN_12 |
Definition at line 161 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #define EMMC_CMD_GPIO_Port GPIOD |
Definition at line 169 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #define EMMC_CMD_Pin GPIO_PIN_2 |
Definition at line 168 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #define EMMC_D0_Pin GPIO_PIN_8 |
Definition at line 141 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #define EMMC_D1_Pin GPIO_PIN_9 |
Definition at line 143 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #define EMMC_D2_Pin GPIO_PIN_10 |
Definition at line 157 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #define EMMC_D3_Pin GPIO_PIN_11 |
Definition at line 159 of file main.h.
Referenced by HAL_MMC_MspDeInit(), and HAL_MMC_MspInit().
| #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().
| #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().
| #define ETH_CLK_GPIO_Port GPIOB |
Definition at line 126 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define ETH_CLK_Pin GPIO_PIN_10 |
Definition at line 125 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define ETH_CS_Pin GPIO_PIN_14 |
Definition at line 120 of file main.h.
Referenced by MX_GPIO_Init().
| #define ETH_INT_EXTI_IRQn EXTI15_10_IRQn |
Definition at line 124 of file main.h.
Referenced by MX_GPIO_Init().
| #define ETH_INT_GPIO_Port GPIOE |
Definition at line 123 of file main.h.
Referenced by MX_GPIO_Init().
| #define ETH_INT_Pin GPIO_PIN_15 |
Definition at line 122 of file main.h.
Referenced by EXTI15_10_IRQHandler(), and MX_GPIO_Init().
| #define ETH_RST_GPIO_Port GPIOE |
Definition at line 119 of file main.h.
Referenced by app_set_state(), and board_bringup_power_up().
| #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().
| #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().
| #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().
| #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().
| #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().
| #define GPS_ANT_STATUS_GPIO_Port GPIOD |
Definition at line 130 of file main.h.
Referenced by gnss_probe(), and MX_GPIO_Init().
| #define GPS_ANT_STATUS_Pin GPIO_PIN_10 |
Definition at line 129 of file main.h.
Referenced by gnss_probe(), and MX_GPIO_Init().
| #define GPS_RST_GPIO_Port GPIOD |
Definition at line 132 of file main.h.
Referenced by MX_GPIO_Init().
| #define GPS_RST_Pin GPIO_PIN_11 |
Definition at line 131 of file main.h.
Referenced by MX_GPIO_Init().
| #define IMU_CS_Pin GPIO_PIN_7 |
Definition at line 179 of file main.h.
Referenced by MX_GPIO_Init().
| #define IMU_INT1_EXTI_IRQn EXTI0_IRQn |
Definition at line 165 of file main.h.
Referenced by MX_GPIO_Init().
| #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().
| #define IMU_INT2_Pin GPIO_PIN_1 |
Definition at line 166 of file main.h.
Referenced by MX_GPIO_Init().
| #define JTDI_DEBUG_Pin GPIO_PIN_15 |
| #define LED1_GPIO_Port GPIOB |
Definition at line 194 of file main.h.
Referenced by bringup_task(), led1(), and MX_GPIO_Init().
| #define LED1_Pin GPIO_PIN_9 |
Definition at line 193 of file main.h.
Referenced by bringup_task(), led1(), and MX_GPIO_Init().
| #define LED2_GPIO_Port GPIOE |
Definition at line 196 of file main.h.
Referenced by bringup_task(), Error_Handler(), and MX_GPIO_Init().
| #define LED2_Pin GPIO_PIN_0 |
Definition at line 195 of file main.h.
Referenced by bringup_task(), Error_Handler(), and MX_GPIO_Init().
| #define NAND_CS_Pin GPIO_PIN_4 |
Definition at line 67 of file main.h.
Referenced by MX_GPIO_Init().
| #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().
| #define NAND_SPI4_MISO_GPIO_Port GPIOE |
Definition at line 70 of file main.h.
Referenced by HAL_SPI_MspInit().
| #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().
| #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().
| #define PWM1_Pin GPIO_PIN_6 |
Definition at line 137 of file main.h.
Referenced by HAL_TIM_MspPostInit().
| #define PWM2_Pin GPIO_PIN_7 |
Definition at line 139 of file main.h.
Referenced by HAL_TIM_MspPostInit().
| #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().
| #define PYRO_1_CTRL_Pin GPIO_PIN_3 |
Definition at line 65 of file main.h.
Referenced by MX_GPIO_Init().
| #define PYRO_1_EN_Pin GPIO_PIN_14 |
Definition at line 75 of file main.h.
Referenced by MX_GPIO_Init().
| #define PYRO_1_PG_Pin GPIO_PIN_15 |
Definition at line 77 of file main.h.
Referenced by MX_GPIO_Init().
| #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().
| #define PYRO_2_CTRL_Pin GPIO_PIN_1 |
Definition at line 197 of file main.h.
Referenced by MX_GPIO_Init().
| #define PYRO_2_EN_Pin GPIO_PIN_13 |
Definition at line 73 of file main.h.
Referenced by MX_GPIO_Init().
| #define PYRO_2_PG_GPIO_Port GPIOB |
Definition at line 192 of file main.h.
Referenced by MX_GPIO_Init().
| #define PYRO_2_PG_Pin GPIO_PIN_8 |
Definition at line 191 of file main.h.
Referenced by MX_GPIO_Init().
| #define RADIO_BUSY_GPIO_Port GPIOC |
Definition at line 106 of file main.h.
Referenced by board_bringup_power_up(), and anonymous_namespace{radio_task.cpp}::BoardBus::wait_busy().
| #define RADIO_BUSY_Pin GPIO_PIN_5 |
Definition at line 105 of file main.h.
Referenced by board_bringup_power_up(), MX_GPIO_Init(), and anonymous_namespace{radio_task.cpp}::BoardBus::wait_busy().
| #define RADIO_CLK_Pin GPIO_PIN_5 |
Definition at line 97 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define RADIO_CS_GPIO_Port GPIOC |
Definition at line 104 of file main.h.
Referenced by MX_GPIO_Init().
| #define RADIO_CS_Pin GPIO_PIN_4 |
Definition at line 103 of file main.h.
Referenced by MX_GPIO_Init().
| #define RADIO_DIO1_EXTI_IRQn EXTI2_IRQn |
Definition at line 113 of file main.h.
Referenced by MX_GPIO_Init().
| #define RADIO_DIO1_GPIO_Port GPIOB |
Definition at line 112 of file main.h.
Referenced by MX_GPIO_Init().
| #define RADIO_DIO1_Pin GPIO_PIN_2 |
Definition at line 111 of file main.h.
Referenced by EXTI2_IRQHandler(), MX_GPIO_Init(), and anonymous_namespace{radio_task.cpp}::radio_task().
| #define RADIO_MISO_Pin GPIO_PIN_6 |
Definition at line 99 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define RADIO_MOSI_Pin GPIO_PIN_7 |
Definition at line 101 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define RADIO_NRST_GPIO_Port GPIOB |
Definition at line 108 of file main.h.
Referenced by board_bringup_power_up().
| #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().
| #define RADIO_RF_SW_GPIO_Port GPIOB |
Definition at line 110 of file main.h.
Referenced by anonymous_namespace{radio_task.cpp}::BoardControl::set_rx_switch().
| #define RADIO_RF_SW_Pin GPIO_PIN_1 |
Definition at line 109 of file main.h.
Referenced by MX_GPIO_Init(), and anonymous_namespace{radio_task.cpp}::BoardControl::set_rx_switch().
| #define REG_3V6_EN_GPIO_Port GPIOE |
Definition at line 117 of file main.h.
Referenced by board_bringup_power_up(), and gps_power().
| #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().
| #define SENSOR_CLK_Pin GPIO_PIN_3 |
Definition at line 181 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define SENSOR_MISO_Pin GPIO_PIN_4 |
Definition at line 183 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define SENSOR_MOSI_GPIO_Port GPIOB |
Definition at line 186 of file main.h.
Referenced by HAL_SPI_MspInit().
| #define SENSOR_MOSI_Pin GPIO_PIN_5 |
Definition at line 185 of file main.h.
Referenced by HAL_SPI_MspDeInit(), and HAL_SPI_MspInit().
| #define SPARE_I2C_SCL_GPIO_Port GPIOD |
Definition at line 134 of file main.h.
Referenced by HAL_I2C_MspDeInit().
| #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().
| #define SPARE_I2C_SDA_GPIO_Port GPIOD |
Definition at line 136 of file main.h.
Referenced by HAL_I2C_MspDeInit().
| #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().
| #define SW_ST_GPIO_Port GPIOE |
Definition at line 115 of file main.h.
Referenced by board_bringup_on_usb(), and MX_GPIO_Init().
| #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().
| #define SWCLK_DEBUG_Pin GPIO_PIN_14 |
| #define SWDIO_DEBUG_Pin GPIO_PIN_13 |
| #define TIMEPULSE_GPIO_Port GPIOB |
Definition at line 128 of file main.h.
Referenced by HAL_TIM_Base_MspDeInit(), and HAL_TIM_Base_MspInit().
| #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().
| #define USB_D_N_Pin GPIO_PIN_11 |
| #define USB_D_P_Pin GPIO_PIN_12 |
| #define VBAT_ADC_Pin GPIO_PIN_0 |
Definition at line 87 of file main.h.
Referenced by HAL_ADC_MspDeInit(), and HAL_ADC_MspInit().
| void Error_Handler | ( | void | ) |
This function is executed in case of error occurrence.
| 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().
| void HAL_TIM_MspPostInit | ( | TIM_HandleTypeDef * | htim | ) |
TIM1 GPIO Configuration PB14 ------> TIM1_CH2N
TIM3 GPIO Configuration PC6 ------> TIM3_CH1 PC7 ------> TIM3_CH2
Definition at line 763 of file stm32h7xx_hal_msp.c.
References __HAL_RCC_GPIOB_CLK_ENABLE, __HAL_RCC_GPIOC_CLK_ENABLE, GPIO_InitTypeDef::Alternate, GPIO_AF1_TIM1, GPIO_AF2_TIM3, GPIO_MODE_AF_PP, GPIO_NOPULL, GPIO_PIN_14, GPIO_SPEED_FREQ_LOW, GPIOB, GPIOC, HAL_GPIO_Init(), TIM_HandleTypeDef::Instance, GPIO_InitTypeDef::Mode, GPIO_InitTypeDef::Pin, GPIO_InitTypeDef::Pull, PWM1_Pin, PWM2_Pin, GPIO_InitTypeDef::Speed, TIM1, and TIM3.
Referenced by MX_TIM1_Init(), and MX_TIM3_Init().
| void MX_SDMMC1_MMC_Init | ( | void | ) |
SDMMC1 Initialization Function.
| None |
| None |
Definition at line 456 of file main.c.
References Error_Handler(), HAL_OK, hmmc1, and SDMMC1.
Referenced by emmc_identify().