RISC-V/serial/usartclass.h
2024-03-07 12:23:44 +01:00

14 lines
328 B
C++

#ifndef USARTCLASS_H
#define USARTCLASS_H
#include "baselayer.h"
#include "fifo.h"
class UsartClass : public BaseLayer {
FIFO<char, 64u> tx_ring;
public:
explicit UsartClass (const unsigned _baud) noexcept;
uint32_t Down (const char * data, const uint32_t len) override;
void irq ();
};
#endif // USARTCLASS_H