Merge branch 'master' of github.com:r0ket/r0ket

This commit is contained in:
iggy 2011-08-01 18:30:18 +02:00
commit 4ccd0bf18d
4 changed files with 8 additions and 6 deletions

View File

@ -16,3 +16,5 @@ void main_tester(void) {
handleMenu(&mainmenu);
gotoISP();
};
void tick_tester(void);

View File

@ -100,7 +100,7 @@ public:
for (int x = 0; x < dimx; ++x) {
for(int y=0; y<dimy; ++y) {
int color;
color=lcdGetPixel((GLOBAL(lcdmirror) /* LCD_MIRRORX */ )?(RESX-x-1):x,( 1 /* LCD_MIRRORY */)?(RESY-y-1):y)?colorInvertedPixelOn:colorInvertedPixelOff;
color=lcdGetPixel((GLOBAL(lcdmirror) /* LCD_MIRRORX */ )?(RESX-x-1):x,( 0 /* LCD_MIRRORY */)?(RESY-y-1):y)?pixelOn:pixelOff;
for(int minix=0; minix<pixw; ++minix) {
for(int miniy=0; miniy<pixh; ++miniy) {

View File

@ -9,11 +9,8 @@ CFLAGS += -I../simcore
OBJS+= ../firmware/basic/*.o
OBJS+= ../firmware/core/*.o
OBJS+= ../firmware/core/*/*.o
LDFLAGS+= -L../firmware/applications
LIBS+= ../firmware/applications/libapp.a
LDFLAGS+= -L../firmware/lcd
LIBS+= ../firmware/lcd/liblcd.a
LDFLAGS+= -L../firmware/usb
LIBS+= ../firmware/usb/libusb.a
#LIBS += -lm
@ -27,10 +24,13 @@ LIBS += ../firmware/basic/libbasic.a
OBJS+=../simcore/simcore.o ../simcore/misc.o ../simcore/timecounter.o
OBJS += simulat0r.o
.PHONY : all
all : simulat0r
simulat0r : simulat0r.o $(OBJS) $(LIBS)
simulat0r : $(OBJS) $(LIBS)
$(LD) $(OBJS) $(LIBS) -lc -o $@
clean:
$(RM) simulat0r.o

View File

@ -12,7 +12,7 @@ void simlcdDisplayUpdate() {
for(int y=0; y<RESY; ++y) {
for(int x=0; x<RESX; ++x) {
write(1,(lcdGetPixel((GLOBAL(lcdmirror) /* LCD_MIRRORX */ )?(RESX-x-1):x,(1 /* & LCD_MIRRORY */)?(RESY-y-1):y)?symbolOn:symbolOff),1);
write(1,(lcdGetPixel((GLOBAL(lcdmirror) /* LCD_MIRRORX */ )?(RESX-x-1):x,(0 /* & LCD_MIRRORY */)?(RESY-y-1):y)?symbolOn:symbolOff),1);
}
write(1,("\n"),1);
}