Skip to content

Commit

Permalink
update hal for stm32.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiu-xiao committed Apr 23, 2024
1 parent 5305575 commit 79c9c29
Show file tree
Hide file tree
Showing 10 changed files with 1,349 additions and 168 deletions.
4 changes: 2 additions & 2 deletions hw/bsp/mc02/drivers/hal/.mxproject

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions hw/bsp/mc02/drivers/hal/Core/Inc/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
void Error_Handler(void);
void MX_GPIO_Init(void);
void MX_DMA_Init(void);
void MX_ADC1_Init(void);
void MX_TIM12_Init(void);
void MX_SPI2_Init(void);
void MX_TIM3_Init(void);
Expand All @@ -68,7 +67,7 @@ void MX_OCTOSPI2_Init(void);
void MX_USB_OTG_HS_PCD_Init(void);
void MX_TIM7_Init(void);
void MX_SPI6_Init(void);
void MX_UART5_Init(void);
void MX_ADC1_Init(void);
void MX_USART3_UART_Init(void);

/* USER CODE BEGIN EFP */
Expand All @@ -78,6 +77,8 @@ void MX_USART3_UART_Init(void);
/* Private defines -----------------------------------------------------------*/
#define POWER_24V_2_Pin GPIO_PIN_13
#define POWER_24V_2_GPIO_Port GPIOC
#define POWER_24V_1_Pin GPIO_PIN_14
#define POWER_24V_1_GPIO_Port GPIOC
#define POWER_5V_Pin GPIO_PIN_15
#define POWER_5V_GPIO_Port GPIOC
#define ACCL_CS_Pin GPIO_PIN_0
Expand Down
2 changes: 1 addition & 1 deletion hw/bsp/mc02/drivers/hal/Core/Inc/stm32h7xx_hal_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
* @brief This is the HAL system configuration section
*/
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
#define TICK_INT_PRIORITY (5UL) /*!< tick interrupt priority */
#define TICK_INT_PRIORITY (15UL) /*!< tick interrupt priority */
#define USE_RTOS 0
#define USE_SD_TRANSCEIVER 0U /*!< use uSD Transceiver */
#define USE_SPI_CRC 0U /*!< use CRC in SPI */
Expand Down
15 changes: 15 additions & 0 deletions hw/bsp/mc02/drivers/hal/Core/Inc/stm32h7xx_it.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,30 @@ void DebugMon_Handler(void);
void DMA1_Stream0_IRQHandler(void);
void DMA1_Stream1_IRQHandler(void);
void DMA1_Stream2_IRQHandler(void);
void DMA1_Stream3_IRQHandler(void);
void DMA1_Stream4_IRQHandler(void);
void DMA1_Stream5_IRQHandler(void);
void DMA1_Stream6_IRQHandler(void);
void FDCAN1_IT0_IRQHandler(void);
void FDCAN2_IT0_IRQHandler(void);
void SPI2_IRQHandler(void);
void USART1_IRQHandler(void);
void USART2_IRQHandler(void);
void USART3_IRQHandler(void);
void EXTI15_10_IRQHandler(void);
void DMA1_Stream7_IRQHandler(void);
void UART5_IRQHandler(void);
void TIM7_IRQHandler(void);
void DMA2_Stream0_IRQHandler(void);
void DMA2_Stream1_IRQHandler(void);
void DMA2_Stream2_IRQHandler(void);
void DMA2_Stream3_IRQHandler(void);
void DMA2_Stream4_IRQHandler(void);
void DMA2_Stream5_IRQHandler(void);
void UART7_IRQHandler(void);
void SPI6_IRQHandler(void);
void BDMA_Channel0_IRQHandler(void);
void USART10_IRQHandler(void);
void FDCAN3_IT0_IRQHandler(void);
void TIM23_IRQHandler(void);
/* USER CODE BEGIN EFP */
Expand Down
Loading

0 comments on commit 79c9c29

Please sign in to comment.