Hi There,
A simple question but i have no idea how to do it
if i do the following
it worksCode:#include...... static struct FLEXCAN2_tag* const pCAN = &CAN_B ; main() { pCAN->.......... }
but how do i do the following
reason im asking is because i want to achieve the wollowing in a functionCode:#include...... main() { static struct FLEXCAN2_tag* const pCAN = &CAN_B ; pCAN->.......... }
thanksCode:void ReadMessage(port) { switch(port) case 0: pCAN = CAN_A break; case 1: pCAN = CAN-B break; pCAN->...... }



LinkBack URL
About LinkBacks


