Mark serial port as fully initialized and always check that before printing anything to the serial console

This commit is contained in:
2022-08-10 17:56:41 +02:00
parent a9171bd512
commit e6aaa1a83c
3 changed files with 25 additions and 11 deletions

View File

@@ -21,8 +21,9 @@
#define COMPORT_DIV_DLM 0x01 /* Divisor Latch Most */
/* Serial port control flags */
#define COMPORT_FLAG_DBR 0x01 /* Default Baud Rate */
#define COMPORT_FLAG_MC 0x02 /* Modem Control */
#define COMPORT_FLAG_INIT 0x01 /* Port Initialized */
#define COMPORT_FLAG_DBR 0x02 /* Default Baud Rate */
#define COMPORT_FLAG_MC 0x04 /* Modem Control */
/* Serial port Fifo Control Register (FCR) access masks */
#define COMPORT_FCR_DISABLE 0x00 /* Disable */