#include <lunaix/ds/mutex.h>
#include <lunaix/ds/waitq.h>
#include <lunaix/ds/rbuffer.h>
-
#include <hal/term.h>
+#include <usr/lunaix/serial.h>
+
#define SERIAL_RW_RX 0x0
#define SERIAL_RW_TX 0x1
#define io_dir(flags) ((flags) & SERIAL_RW_TX)
struct device* dev;
struct waitq wq_rxdone;
struct waitq wq_txdone;
- struct term* at_term;
void* backend;
struct rbuffer rxbuf;
int wr_len;
+ struct termport_potens* tp_cap;
+
/**
* @brief Write buffer to TX. The return code indicate
* the transaction is either done in synced mode (TX_DONE) or will be