using macro as function parameter

Status
Not open for further replies.

spartekus

Member level 5
Joined
May 27, 2010
Messages
81
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Duisburg, Germany
Visit site
Activity points
1,918
Hi all,

i would like to call macro(it is input of microcontroller) with a function.
#define X0 _RC3

i need to do debouncing.

does anyone know, can we use macro as function parameter? if yes, what should be type of function variable?

char debounce( ??? )

thanks
Regards
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…