Let's see my code T.T
I defined my macros as shown as below
This is my macro header file. macro.h
#define BUZZER_PWM PWMA
#define BUZZER_PWM_CH 0
#define ENABLE_PWM(pwm,ch) (pwm)->POE |= PWM_POE_PWM##ch##_Msk
and call macro in another cfile
ENABLE_PWM(BUZZER_PWM,BUZZER_PWM_CH);
I pretected the result after precompile is
PWMA -> POE |= PWM_POE_PWM0_Msk;
But
PWMA -> POE |= PWM_POEBUZZER_PWM_CH_Msk;
is resulted. Is there any solution??
Sorry for my ugly English skills..