22 lines
462 B
C++
22 lines
462 B
C++
#include <unistd.h>
|
|
#include "usart.h"
|
|
|
|
Usart::Usart(const uint32_t _baud) noexcept : BaseLayer (), tx_ring () {
|
|
}
|
|
void Usart::irq () {
|
|
}
|
|
void Usart::SetRS485 (const bool polarity) const {
|
|
}
|
|
void Usart::SetHalfDuplex (const bool on) const {
|
|
}
|
|
|
|
uint32_t Usart::Down (const char * data, const uint32_t len) {
|
|
const int n = ::write (1, data, len);
|
|
return n;
|
|
}
|
|
extern "C" {
|
|
void __cxa_pure_virtual() { while (1); }
|
|
int terminate () {
|
|
return 0;
|
|
}
|
|
};
|