diff --git a/BaS_GNU/Makefile b/BaS_GNU/Makefile index 237bd24..dc9007a 100644 --- a/BaS_GNU/Makefile +++ b/BaS_GNU/Makefile @@ -18,7 +18,7 @@ CC=$(TCPREFIX)gcc LD=$(TCPREFIX)ld INCLUDE=-Iinclude -CFLAGS=-mcpu=5474 -Wall -Wno-multichar -Os -fomit-frame-pointer +CFLAGS=-mcpu=5474 -mbitfield -Wall -Wno-multichar -Os -fomit-frame-pointer SRCDIR=sources OBJDIR=objs diff --git a/BaS_GNU/sources/sysinit.c b/BaS_GNU/sources/sysinit.c index caaeb2a..db5ccf5 100644 --- a/BaS_GNU/sources/sysinit.c +++ b/BaS_GNU/sources/sysinit.c @@ -219,7 +219,7 @@ void init_fpga(void) MCF_GPIO_PODR_FEC1L &= ~(1 << 1); /* FPGA clock => low */ MCF_GPIO_PODR_FEC1L &= ~(1 << 2); /* FPGA config => low */ - while ((! (MCF_GPIO_PPDSDR_FEC1L & (1 << 0))) && (! (MCF_GPIO_PPDSDR_FEC1L & (1 << 5)))); + while (((MCF_GPIO_PPDSDR_FEC1L & (1 << 0))) || ((MCF_GPIO_PPDSDR_FEC1L & (1 << 5)))); wait_10us(); MCF_GPIO_PODR_FEC1L |= (1 << 2);