![]() ![]() The IAR tools have a predefined function (in 'uart. Without going into a discussion about the best way to do this, my real problem is that I cannot seem to tell the program to uses this interrupt. That is equivalent to: void p p + 1 You cannot perform pointer arithmatic on a pointer which has an incomplete type because the compiler does not know how the value to increment by. This are the errors i get.: > mAlive CXX0030: Error: expression cannot be evaluated A standalone reference to a member variable like mAlive only makes sense when stepping through a member function of the class for which mAlive is a member variable. It has no single point of failure and cannot be spoofed by an. * read the character and put into buffer */ In terms of your second question that code is invalid because what you have is a void and you are trying to increment it by sizeof (uint8t) (I assume 1). generated tags: nlp:air traffic controlnlp:computerized. ![]() TempData = UART_CheckFlag(UART1, UART_FlagRDRF) This function should occur when the KE02Z UART1 generates an RDRF as a complete character comes into the UART. 0 which results in code like Most compilers and environments have options to stop after preprocessing, if you use it you can see exactly what code the compiler 'proper' will see. I have a UART function that should receive an ASCII character, put it into a small buffer, increment a buffer counter, and set a flag if a CR or LF is received. What happens is that when the preprocessor replaces the macro cpuStateOff it uses the whole body of the macro, i.e. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |