Support serial UART without FIFO. Patch from EluanCM.
This commit is contained in:
parent
1181b13c2d
commit
dcf354688d
6 changed files with 24 additions and 20 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "timer.h"
|
||||
|
||||
void serial1_init(uint16_t addr, int irq);
|
||||
void serial2_init(uint16_t addr, int irq);
|
||||
void serial1_init(uint16_t addr, int irq, int has_fifo);
|
||||
void serial2_init(uint16_t addr, int irq, int has_fifo);
|
||||
void serial1_set(uint16_t addr, int irq);
|
||||
void serial2_set(uint16_t addr, int irq);
|
||||
void serial1_remove();
|
||||
|
|
@ -26,6 +26,7 @@ typedef struct
|
|||
void *rcr_callback_p;
|
||||
uint8_t fifo[256];
|
||||
int fifo_read, fifo_write;
|
||||
int has_fifo;
|
||||
|
||||
pc_timer_t receive_timer;
|
||||
} SERIAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue