Changeset 82 for ctrl/firmware/Main/CubeMX/Core
- Timestamp:
- Feb 6, 2025, 8:27:24 AM (3 months ago)
- Location:
- ctrl/firmware/Main/CubeMX/Core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ctrl/firmware/Main/CubeMX/Core/Inc/stm32h7xx_it.h
r81 r82 67 67 void TIM7_IRQHandler(void); 68 68 void SPI4_IRQHandler(void); 69 void MDMA_IRQHandler(void); 69 70 void USART10_IRQHandler(void); 70 71 /* USER CODE BEGIN EFP */ -
ctrl/firmware/Main/CubeMX/Core/Src/main.c
r81 r82 22 22 #include "dma.h" 23 23 #include "fatfs.h" 24 #include "mdma.h" 24 25 #include "memorymap.h" 25 26 #include "rtc.h" … … 105 106 /* USER CODE BEGIN Init */ 106 107 107 SCB_DisableDCache();108 //SCB_DisableDCache(); 108 109 109 110 /* USER CODE END Init */ … … 124 125 MX_GPIO_Init(); 125 126 MX_DMA_Init(); 127 MX_MDMA_Init(); 126 128 MX_RTC_Init(); 127 129 MX_SPI4_Init(); … … 280 282 281 283 HAL_MPU_ConfigRegion(&MPU_InitStruct); 284 285 /** Initializes and configures the Region and the memory to be protected 286 */ 287 MPU_InitStruct.Number = MPU_REGION_NUMBER1; 288 MPU_InitStruct.BaseAddress = 0x24000000; 289 MPU_InitStruct.Size = MPU_REGION_SIZE_128KB; 290 MPU_InitStruct.SubRegionDisable = 0x0; 291 MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; 292 MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS; 293 MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE; 294 295 HAL_MPU_ConfigRegion(&MPU_InitStruct); 282 296 /* Enables the MPU */ 283 297 HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT); -
ctrl/firmware/Main/CubeMX/Core/Src/stm32h7xx_it.c
r81 r82 25 25 26 26 #include "FreeRTOS.h" 27 #include "semphr.h" 27 #include "modbus.h" 28 //#include "semphr.h" 28 29 29 30 /* USER CODE END Includes */ … … 60 61 61 62 /* External variables --------------------------------------------------------*/ 63 extern MDMA_HandleTypeDef hmdma_mdma_channel0_sdmmc1_end_data_0; 62 64 extern SD_HandleTypeDef hsd1; 63 65 extern DMA_HandleTypeDef hdma_spi2_rx; … … 374 376 375 377 /** 378 * @brief This function handles MDMA global interrupt. 379 */ 380 void MDMA_IRQHandler(void) 381 { 382 /* USER CODE BEGIN MDMA_IRQn 0 */ 383 384 /* USER CODE END MDMA_IRQn 0 */ 385 HAL_MDMA_IRQHandler(&hmdma_mdma_channel0_sdmmc1_end_data_0); 386 /* USER CODE BEGIN MDMA_IRQn 1 */ 387 388 /* USER CODE END MDMA_IRQn 1 */ 389 } 390 391 /** 376 392 * @brief This function handles USART10 global interrupt. 377 393 */ … … 379 395 { 380 396 /* USER CODE BEGIN USART10_IRQn 0 */ 397 extern modbus_t lb_mbData; 398 MODBUS_UART_IRQHandler(&huart10, &lb_mbData); 399 return; 400 381 401 382 402 /* USER CODE END USART10_IRQn 0 */
Note: See TracChangeset
for help on using the changeset viewer.