Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: EK-TM4C1294XL
Tool/software: Code Composer Studio
Hi,
This question probably shows a great lack of knowledge. I have code to read from a rotary encoder with the line qeiPosition = QEIPositionGet(QEI0_BASE). When there is no encoder attached, the program sails past this statement. I was expecting it to wait at that point until a signal from the encoderr arrived. Does the code need an interrupt handler to wait for the signal?
While I was waiting for an answer, in case it does I added code for an interrupt handler. I was trying to register the interrupt handler in a C++ file with:
GPIOIntRegister(GPIO_PORTD_BASE,PORTDIntHandler);
The compiler gives the message:
#169 argument of type "void (*)()" is incompatible with parameter of type "void (*)() C"
Which seems to be saying void (*)() is different from void (*)() which is slightly confusing to say the least. However, a C file compiles without error. I would like to stick with C++ though if possible.
Thank you