Tollos – mbedDebug.c | ||||||||||
Libraries
Background
|
mbedDebug.c – debug device I/O functions The debug functions communicate with the host computer using a serial link.For mbed, this is the SerialPC link, which is on UART0. Note that on Windows a driver must be installed for this to work. See: http://mbed.org/handbook/SerialPC
debugGetcIO – get character int debugGetcIO(void);
returns character read from host, or −1 if none there This function does not block. debugInitIO – initialize port for I/O void debugInitIO(uint baud);
baud – rate to run debug communications It is recommended that a ‘standard’ baud rate be used, e.g., 9600 or 115200. At 9600 about 38 characters can be sent in 40ms (one major tick); at 115200, 460 can be sent. debugPutcIO – send character to debug terminal void debugPutcIO(int ch);
ch – character to send This waits for any previous send to complete. |
Tollos and these web pages were written by Mike Cowlishaw; Please send me any corrections, suggestions, etc. | |
All content © Mike Cowlishaw, 2010–2012, except where marked
otherwise. All rights reserved. The pages here are for non-commercial
use only (see the separate licence for Tollos source code).
Privacy policy: the Speleotrove website
records no personal information and sets no ‘cookies’.
However, statistics, etc. might be recorded by the web hosting
service.
This page was last updated on 2010-12-07 by c2wiki. |