Example of setting stdout baudrate

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 void baud(int baudrate) {
00004     Serial s(USBTX, USBRX);
00005     s.baud(baudrate);
00006 }
00007 
00008 int main() {
00009     baud(115200);
00010     printf("Hello, faster world!");
00011 }