Skip to content

arman-novikov/STMStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HAL based uart facade class for STM MCUs

usage:

Stream console{&huart6};

console.write("hello");
console.writeln("world");
console.write(100500);
console << "hello" << 123;
if (console.available()) {
    char buf[128];
    if (int res = readln(buf); res > 0) {
        console << res << " bytes read;
    } else {
        console << "error" << res;
    }
    console << etl::endl;
    const auto str = console.readString();
    console << "echo: " << str.data() << etl::endl;
}

About

USART Facade class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages