SERIAL PORT RECEIVE ATTACH DEMO PROGRAM Simple demo program showing how the serial port \"attach()\" method is used to interrupt when a character has been received into the USART. The main() program sets up the serial port baudrate, attaches the function pointer to the function to be called when a character is received on this serial port, and then loops and flashed some LEDs. Routine \"void SerialRecvInterrupt(void)\" is invoked anytime a character has been received by the by the USART.
mbed.bld@0:444ff736d35e, 2011-05-26 (annotated)
- Committer:
- YouTahDoug
- Date:
- Thu May 26 19:50:24 2011 +0000
- Revision:
- 0:444ff736d35e
v1.0 Initial
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
YouTahDoug | 0:444ff736d35e | 1 | http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912 |