3b2: Fix windows build

This commit is contained in:
Seth Morabito 2018-02-15 07:10:44 -08:00
parent d91d47d1f4
commit c05190780b
2 changed files with 7 additions and 7 deletions

View file

@ -325,7 +325,7 @@ t_stat contty_reset(DEVICE *dtpr)
memset(&iu_contty, 0, sizeof(IU_PORT)); memset(&iu_contty, 0, sizeof(IU_PORT));
brg_reg = 0; brg_reg = 0;
brg_clk = BRG_DEFAULT; brg_clk = BRG_DEFAULT;
parity_sel = PARITY_EVEN; parity_sel = IU_PARITY_EVEN;
bits_per_char = 7; bits_per_char = 7;
sprintf(line_config, "%s-%d%s1", sprintf(line_config, "%s-%d%s1",
@ -644,13 +644,13 @@ void iu_write(uint32 pa, uint32 val, size_t size)
if (modep == 0) { if (modep == 0) {
if ((bval >> 4) & 1) { if ((bval >> 4) & 1) {
/* No parity */ /* No parity */
parity_sel = PARITY_NONE; parity_sel = IU_PARITY_NONE;
} else { } else {
/* Parity enabled */ /* Parity enabled */
if (bval & 4) { if (bval & 4) {
parity_sel = PARITY_ODD; parity_sel = IU_PARITY_ODD;
} else { } else {
parity_sel = PARITY_EVEN; parity_sel = IU_PARITY_EVEN;
} }
} }

View file

@ -44,9 +44,9 @@
#define IU_SPEED_REGS 2 /* Two speed select registers, */ #define IU_SPEED_REGS 2 /* Two speed select registers, */
#define IU_SPEEDS 16 /* with 16 speeds each */ #define IU_SPEEDS 16 /* with 16 speeds each */
#define PARITY_ODD 0 #define IU_PARITY_ODD 0
#define PARITY_EVEN 1 #define IU_PARITY_EVEN 1
#define PARITY_NONE 2 #define IU_PARITY_NONE 2
#define STS_RXR 0x01 /* Receiver ready */ #define STS_RXR 0x01 /* Receiver ready */
#define STS_FFL 0x02 /* FIFO full */ #define STS_FFL 0x02 /* FIFO full */