Programming Embedded Systems by By
Author:By
Language: eng
Format: epub
ISBN: 0-596-00983-6
Publisher: O'Reilly
Published: 2011-10-03T16:06:10.098790+00:00
The serial device driver API function serialGetChar waits until a character is received and then reads the character from the serial port. To determine whether a character has been received, the data ready bit is checked in the UART status register. The character received is returned to the calling function. Here is the serialGetChar function:
#define DATA_READY (0x01) /********************************************************************** * * Function: serialGetChar * * Description: Get a character from the serial port. * * Notes: This function is specific to the Arcom board. * * Returns: The character received from the serial port. * **********************************************************************/ char serialGetChar(void) { /* Wait for the next character to arrive. */ while ((pSerialPort->uartStatus & DATA_READY) == 0) ; return pSerialPort->data; }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Linux Device Driver Development Cookbook by Rodolfo Giometti(3932)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3579)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3515)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3347)
TinyML Cookbook by Gian Marco Iodice(3288)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2837)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2601)
Fusion 360 for Makers by Lydia Sloan Cline(2219)
Networking A Beginner's Guide by Bruce Hallberg(2208)
Hands-On Linux for Architects by Denis Salamanca(2051)
But How Do It Know? by J. Clark Scott(2030)
Computers For Seniors For Dummies by Nancy C. Muir(1995)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1950)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1947)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1897)
Hack and HHVM by Owen Yamauchi(1884)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1858)
MicroPython Projects by Jacob Beningo(1728)
Hands-On Internet of Things with MQTT by Tim Pulver(1702)
