14 lines
328 B
C++
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
|