X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/59ecf21e36b2332f6adf2a568ef555283d8c119a..35a7d633d3f16c1e0539af6ca5d8e7482926cd93:/lunaix-os/includes/hal/serial.h diff --git a/lunaix-os/includes/hal/serial.h b/lunaix-os/includes/hal/serial.h index c346c51..ba2185c 100644 --- a/lunaix-os/includes/hal/serial.h +++ b/lunaix-os/includes/hal/serial.h @@ -6,9 +6,10 @@ #include #include #include - #include +#include + #define SERIAL_RW_RX 0x0 #define SERIAL_RW_TX 0x1 #define io_dir(flags) ((flags) & SERIAL_RW_TX) @@ -28,12 +29,13 @@ struct serial_dev 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