Download CodeWarrior Target Resident Kernel Reference

Transcript
Chapter 6 CodeWarrior TRK Function Reference
If the value of TRK_TRANSPORT_INT_DRIVEN is 1 (indicating that this CodeWarrior TRK is
interrupt-driven), InterruptHandler() first determines whether the interrupt is a
communication interrupt. If it is, InterruptHandler() calls TransportIrqHandler() to process
the interrupt. Otherwise, InterruptHandler() processes the non-communication interrupt
normally.
NOTE
For some target boards, InterruptHandler() is found in a C
program file; for others, InterruptHandler() resides in an
assembly language file and its name differs slightly. For more
information, see the processor-specific appendixes.
Source File
For source file information, see the processor-specific appendixes in this manual.
Board-specific?
No.
See Also
• InitializeIntDrivenUART()
• SwapAndGo()
• TransportIrqHandler()
6.19 ReadUARTPoll()
Polls the serial device to see whether there is a character to read. If there is, ReadUARTPoll()
reads it; otherwise, ReadUARTPoll() returns an error.
NOTE
You must change ReadUARTPoll() for new target boards.
UARTError ReadUARTPoll ( char* c );
c
Pointer to the output variable for the character read.
Returns
Returns one of these UARTError error codes:
•
kUARTNoData
CodeWarrior Target Resident Kernel Reference, Rev. 10.5.0, 06/2015
Freescale Semiconductor, Inc.
91