RISC-V/V003/serial/usartclass.h

15 lines
328 B
C
Raw Permalink Normal View History

2024-03-02 19:33:18 +01:00
#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