#include "usart.h" #include #include #include class Top : public BaseLayer { static constexpr int max = 1024; volatile unsigned index; int passcnt; char buffer [max]; public: explicit Top () : BaseLayer(), index(0u), passcnt(0) {} void puts (const char * str) { const unsigned l = strlen(str); Down(str, l); } uint32_t Up(const char * data, const uint32_t len) override { for (unsigned n=0; n