yet another EXT question
Posted: Thu Jun 07, 2012 2:46 pm
Hello.
1/ I don't understand how to use EXTConfig array, configuring the port is easy, but how to specify the input pin ?
What should i put in the array if i want, by example to call
extcbA0 on GPIOA,INPUT0
extcbA1 on GPIOA,INPUT1
extcbB0 on GPIOB,INPUT0
extcbB1 on GPIOB,INPUT1
something like
?
2/ I see no way to pass a user parameter to the extcallback_t callback, i want to call the same callback with
different values of parameter for each entries, should i use as many stub cb which will call my unique fonction with
the right parameter ?
Thanks
Alexandre
1/ I don't understand how to use EXTConfig array, configuring the port is easy, but how to specify the input pin ?
What should i put in the array if i want, by example to call
extcbA0 on GPIOA,INPUT0
extcbA1 on GPIOA,INPUT1
extcbB0 on GPIOB,INPUT0
extcbB1 on GPIOB,INPUT1
something like
Code: Select all
{EXT_CH_MODE_BOTH_EDGES | EXT_CH_MODE_AUTOSTART | EXT_MODE_GPIOA, extcbA0},
{EXT_CH_MODE_BOTH_EDGES | EXT_CH_MODE_AUTOSTART | EXT_MODE_GPIOA, extcbA1},
{EXT_CH_MODE_BOTH_EDGES | EXT_CH_MODE_AUTOSTART | EXT_MODE_GPIOB, extcB0},
{EXT_CH_MODE_BOTH_EDGES | EXT_CH_MODE_AUTOSTART | EXT_MODE_GPIOB, extcB1},?
2/ I see no way to pass a user parameter to the extcallback_t callback, i want to call the same callback with
different values of parameter for each entries, should i use as many stub cb which will call my unique fonction with
the right parameter ?
Thanks
Alexandre