Skip to content

Commit

Permalink
stm32u5 hal dma_ex function not inlined with GCC 11 or 12
Browse files Browse the repository at this point in the history
  • Loading branch information
FRASTM committed Nov 28, 2024
1 parent 8134106 commit 7cd6c20
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,11 @@ static void DMA_List_BuildNode(DMA_NodeConfTypeDef const *const pNodeConfig,
DMA_NodeTypeDef *const pNode);
static void DMA_List_GetNodeConfig(DMA_NodeConfTypeDef *const pNodeConfig,
DMA_NodeTypeDef const *const pNode);
#if (__GNUC__ == 11) || (__GNUC__ == 12)
static __attribute__((noinline)) uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
#else
static uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
#endif
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3,
DMA_NodeTypeDef const *const pNode4);
Expand Down Expand Up @@ -4074,7 +4078,11 @@ static void DMA_List_GetNodeConfig(DMA_NodeConfTypeDef *const pNodeConfig,
* @param pNode4 : Pointer to a DMA_NodeTypeDef structure that contains linked-list node 4 registers configurations.
* @retval Return 0 when nodes addresses are compatible, 1 otherwise.
*/
#if (__GNUC__ == 11) || (__GNUC__ == 12)
static __attribute__((noinline)) uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
#else
static uint32_t DMA_List_CheckNodesBaseAddresses(DMA_NodeTypeDef const *const pNode1,
#endif
DMA_NodeTypeDef const *const pNode2,
DMA_NodeTypeDef const *const pNode3,
DMA_NodeTypeDef const *const pNode4)
Expand Down

0 comments on commit 7cd6c20

Please sign in to comment.