Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libconio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ check:
make -C $(SRCDIR) check

install: target
install -D -d -m 755 $(INSTDIR)/lib
install -d -m 755 $(INSTDIR)/lib
install -m 644 ./lib/*.a $(INSTDIR)/lib/.
install -D -d -m 755 $(INSTDIR)/include/libemb/conio
install -d -m 755 $(INSTDIR)/include/libemb/conio
install -m 644 ./src/include/*.h $(INSTDIR)/include/libemb/conio/.

deploy-bin: clean target gen-docs
Expand Down
10 changes: 4 additions & 6 deletions libconio/src/conio.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@ void cio_printi(int n)

void cio_printb(int n, int size)
{

int i;

int mask = 1 << (size - 1);

for(i = 0; i < size; i++) {
if((n & (mask >> i)) != 0) {
for(i = size - 1; i >= 0; i--) {
if((n >> i) & 1) {
cio_printc('1');
} else {
cio_printc('0');
Expand Down Expand Up @@ -125,9 +122,10 @@ void cio_printf(char *format, ...)
cio_printc((char)va_arg(a, int));
break;
case 'i': // 16 bit Integer
case 'd': // 16 bit Integer
case 'u': // 16 bit Unsigned
i = va_arg(a, int);
if(c == 'i' && i < 0) i = -i, cio_printc('-');
if((c == 'i' || c =='d') && i < 0) i = -i, cio_printc('-');
_xtoa((unsigned)i, _dv + 5);
break;
case 'l': // 32 bit Long
Expand Down
4 changes: 2 additions & 2 deletions libi2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ check:
make -C $(SRCDIR) check

install: target
install -D -d -m 755 $(INSTDIR)/lib
install -d -m 755 $(INSTDIR)/lib
install -m 644 ./lib/*.a $(INSTDIR)/lib/.
install -D -d -m 755 $(INSTDIR)/include/libemb/i2c
install -d -m 755 $(INSTDIR)/include/libemb/i2c
install -m 644 ./src/include/*.h $(INSTDIR)/include/libemb/i2c/.

deploy-bin: clean target gen-docs
Expand Down
4 changes: 2 additions & 2 deletions libnrf24l01/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ check:
make -C $(SRCDIR) check

install: target
install -D -d -m 755 $(INSTDIR)/lib
install -d -m 755 $(INSTDIR)/lib
install -m 644 ./lib/*.a $(INSTDIR)/lib/.
install -D -d -m 755 $(INSTDIR)/include/libemb/nrf24l01
install -d -m 755 $(INSTDIR)/include/libemb/nrf24l01
install -m 644 ./src/include/*.h $(INSTDIR)/include/libemb/nrf24l01/.

deploy-bin: clean target gen-docs
Expand Down
4 changes: 2 additions & 2 deletions libserial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ check:
make -C $(SRCDIR) check

install: target
install -D -d -m 755 $(INSTDIR)/lib
install -d -m 755 $(INSTDIR)/lib
install -m 644 ./lib/*.a $(INSTDIR)/lib/.
install -D -d -m 755 $(INSTDIR)/include/libemb/serial
install -d -m 755 $(INSTDIR)/include/libemb/serial
install -m 644 ./src/include/*.h $(INSTDIR)/include/libemb/serial/.

deploy-bin: clean target gen-docs
Expand Down
4 changes: 2 additions & 2 deletions libshell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ check:
make -C $(SRCDIR) check

install: target
install -D -d -m 755 $(INSTDIR)/lib
install -d -m 755 $(INSTDIR)/lib
install -m 644 ./lib/*.a $(INSTDIR)/lib/.
install -D -d -m 755 $(INSTDIR)/include/libemb/shell
install -d -m 755 $(INSTDIR)/include/libemb/shell
install -m 644 ./src/include/*.h $(INSTDIR)/include/libemb/shell/.

deploy-bin: clean target gen-docs
Expand Down