+1
0
-1

How to Enable hardware dependent Macro function in do-while loop

Hi,
I am getting segmentation violation for below code , can anyone please help me out how to write user code for below macro '__HAL_RCC_GPIOH_CLK_ENABLE'

void BSP_LED_Init...

Posting in: 

2 Answers:

+1
0
-1

Hello,

You've detailed three macros here. ...

+1
0
-1

Hi Brain,
Thanks for the reply.
I tried as below and it worked for me:
#ifdef __HAL_RCC_ETHMAC_CLK_ENABLE
#undef __HAL_RCC_ETHMAC_CLK_ENABLE
#endif
#define...