Simon Ford
/
baud
Example of setting stdout baudrate
Revision 0:2c059aa102cb, committed 2012-09-04
- Comitter:
- simon
- Date:
- Tue Sep 04 19:33:05 2012 +0000
- Commit message:
- basic program
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 04 19:33:05 2012 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +void baud(int baudrate) { + Serial s(USBTX, USBRX); + s.baud(baudrate); +} + +int main() { + baud(115200); + printf("Hello, faster world!"); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Sep 04 19:33:05 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file