UDI/16c550 - TX working, RX in progress
[tpg/acess2.git] / UDI / drivers / uart_16c550 / uart16c550_common.h
index 6f051e2..864f461 100644 (file)
@@ -16,11 +16,15 @@ enum {
 enum {
        PIO_RESET,
        PIO_TX,
-       PIO_RX,
+       PIO_INTR,
        N_PIO
 };
 
+#define RX_BUFFER_SIZE 32
+
 typedef struct {
+       udi_init_context_t      init_context;
+
        udi_cb_t        *active_cb;
        struct {
                udi_index_t     pio_index;
@@ -28,6 +32,9 @@ typedef struct {
        
        udi_pio_handle_t        pio_handles[N_PIO];
        udi_channel_t   interrupt_channel;
+       
+       udi_ubit8_t     rx_bytes;
+       udi_buf_t       *rx_buffer;
 } rdata_t;
 
 // === MACROS ===

UCC git Repository :: git.ucc.asn.au